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 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.