memguard: Index | Files

package memcall

import ""


Package Files


func Alloc Uses

func Alloc(n int) []byte

Alloc allocates a byte slice of length n and returns it.

func DisableCoreDumps Uses

func DisableCoreDumps()

DisableCoreDumps disables core dumps on Unix systems.

func Free Uses

func Free(b []byte)

Free unallocates the byte slice specified.

func Lock Uses

func Lock(b []byte)

Lock is a wrapper for unix.Mlock(), with extra precautions.

func Protect Uses

func Protect(b []byte, read, write bool)

Protect modifies the PROT_ flags for a specified byte slice.

func Unlock Uses

func Unlock(b []byte)

Unlock is a wrapper for unix.Munlock().

Package memcall imports 2 packages (graph) and is imported by 3 packages. Updated 2019-05-11. Refresh now. Tools for package owners.