package
Version:
v2.1.0
Opens a new window with list of versions in this module.
Published: Apr 12, 2025
License: GPL-3.0, BSD-3-Clause
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
mmap
Extracted from go/src/cmd/go/internal/mmap/
(related to cache
).
This is just a copy of the Go code without any changes.
History
Documentation
¶
The mmap package provides an abstraction for memory mapping files
on different platforms.
type Data struct {
Data []byte
}
Data is mmap'ed read-only data from a file.
The backing file is never closed, so Data
remains valid for the lifetime of the process.
Mmap maps the given file into memory.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.