mmap

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 6 Imported by: 8

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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