package mmap

import "github.com/influxdata/influxdb/pkg/mmap"

Package mmap provides a way to memory-map a file.

Index

Functions

func Map

func Map(path string, sz int64) (data []byte, err error)

Map memory-maps a file.

func Unmap

func Unmap(data []byte) error

Unmap closes the memory-map.

Source Files

mmap_unix.go

Version
v1.12.0 (latest)
Published
Apr 8, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
2 days ago

Tools for package owners.