util

package
v0.0.0-...-9dc52b1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: Unlicense Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BzeroBytes

func BzeroBytes(buf []byte)

BzeroBytes sets all entries in the given byte slice buf to zero.

func BzeroStruct

func BzeroStruct(strct interface{})

BzeroStruct sets all entries in the given struct pointer strct to zero. The struct definition must only contain exported arrays or slices, otherwise the function panics.

func Dup

func Dup(fd uintptr) (uintptr, error)

Dup creates a copy of the file descriptor fd and returns it.

func MlockBytes

func MlockBytes(buf []byte)

MlockBytes locks all entries in the given byte slice buf to memory.

func MlockStruct

func MlockStruct(strct interface{})

MlockStruct locks all entries in the given struct pointer to memory. The struct definition must only contain exported arrays or slices, otherwise the function panics.

func MunlockBytes

func MunlockBytes(buf []byte)

MunlockBytes unlocks all entries in the given byte slice buf from memory.

func MunlockStruct

func MunlockStruct(strct interface{})

MunlockStruct unlocks all entries in the given struct pointer from memory. The struct definition must only contain exported arrays or slices, otherwise the function panics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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