package mmap
import "golang.org/x/telemetry/internal/mmap"
The mmap package provides an abstraction for memory mapping files on different platforms.
Index ¶
Functions ¶
func Munmap ¶
Munmap unmaps the given file from memory.
Types ¶
type Data ¶
type Data struct { Data []byte // Some windows magic Windows interface{} // contains filtered or unexported fields }
The backing file is never closed, so Data remains valid for the lifetime of the process.
func Mmap ¶
Mmap maps the given file into memory. When remapping a file, pass the most recently returned Data.
Source Files ¶
mmap.go mmap_unix.go
- Version
- v0.0.0-20250214215356-6f9b61db478c (latest)
- Published
- Feb 14, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 3 days ago –
Tools for package owners.