mmap

package
v0.0.0-...-1f8a15b Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const MaxMapSize = 0xFFFFFFFFFFFF

Variables

This section is empty.

Functions

func MadviseNormal

func MadviseNormal(mmapHandle1 []byte) error

func MadviseRandom

func MadviseRandom(mmapHandle1 []byte) error

func MadviseSequential

func MadviseSequential(mmapHandle1 []byte) error

func MadviseWillNeed

func MadviseWillNeed(mmapHandle1 []byte) error

func Mmap

func Mmap(f *os.File, size int) ([]byte, *[MaxMapSize]byte, error)

func MmapRw

func MmapRw(f *os.File, size int) ([]byte, *[MaxMapSize]byte, error)

mmap memory maps a DB's data file.

func Munmap

func Munmap(mmapHandle1 []byte, _ *[MaxMapSize]byte) error

munmap unmaps a DB's data file from memory.

func TotalMemory

func TotalMemory() uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

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