mmap

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MREMAP_MAYMOVE = 0x1

Variables

This section is empty.

Functions

func MAdvise

func MAdvise(b []byte, randomRead bool) error

MAdvise provide advice on memory usage. If the page references are expected to be in random order, set the randomRead flag to true.

func MMap

func MMap(fd *os.File, writable bool, size int64) ([]byte, error)

MMap uses the mmap system call to memory-map a file. If writable is true, memory protection of the pages is set so that they may be written to as well.

func MSync

func MSync(b []byte) error

MSync syncs the mapped data

func MUnmap

func MUnmap(b []byte) error

MUnMap unmaps a mapped slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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