Categorygithub.com/awnumar/memcall
modulepackage
0.4.0
Repository: https://github.com/awnumar/memcall.git
Documentation: pkg.go.dev

# README

memcall

Cirrus CI GoDoc Go Report Card

This package provides a cross-platform wrapper over some common memory-related system calls.

Please report any issues that you experience.

# Functions

Alloc allocates a byte slice of length n and returns it.
DisableCoreDumps disables core dumps on Unix systems.
Free deallocates the byte slice specified.
Lock is a wrapper for mlock(2), with extra precautions.
NoAccess specifies that the memory should be marked unreadable and immutable.
Protect modifies the protection state for a specified byte slice.
ReadOnly specifies that the memory should be marked read-only (immutable).
ReadWrite specifies that the memory should be made readable and writable.
Unlock is a wrapper for munlock(2).

# Constants

ErrInvalidFlag indicates that a given memory protection flag is undefined.

# Structs

MemoryProtectionFlag specifies some particular memory protection flag.