bzero

package module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2021 License: BSD-2-Clause Imports: 2 Imported by: 2

README

bzero

Optimized memory zeroing in Go.

Documentation

Overview

Package bzero implements optimized memory zeroing, analogous to the BSD-flavored C function bzero(3).

Inspired by:

"Building Faster AMD64 Memset Routines", blog of Microsoft Security Response Center
<https://msrc-blog.microsoft.com/2021/01/11/building-faster-amd64-memset-routines/>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int16 added in v1.0.0

func Int16(slice []int16)

Int16 fills the given []int16 slice with zeroes.

func Int32 added in v1.0.0

func Int32(slice []int32)

Int32 fills the given []int32 slice with zeroes.

func Int64 added in v1.0.0

func Int64(slice []int64)

Int64 fills the given []int64 slice with zeroes.

func Int8 added in v1.0.0

func Int8(slice []int8)

Int8 fills the given []int8 slice with zeroes.

func Uint16 added in v1.0.0

func Uint16(slice []uint16)

Uint16 fills the given []uint16 slice with zeroes.

func Uint32 added in v1.0.0

func Uint32(slice []uint32)

Uint32 fills the given []uint32 slice with zeroes.

func Uint64 added in v1.0.0

func Uint64(slice []uint64)

Uint64 fills the given []uint64 slice with zeroes.

func Uint8 added in v1.0.0

func Uint8(slice []uint8)

Uint8 fills the given []uint8 slice with zeroes.

func Unsafe added in v1.0.0

func Unsafe(base unsafe.Pointer, size uintptr)

Unsafe fills the given memory region with zeroes.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL