Categorygithub.com/godcong/mmap
modulepackage
0.1.0
Repository: https://github.com/godcong/mmap.git
Documentation: pkg.go.dev

# README

MMAP

GitHub release go.dev reference codecov GoDoc License Go Report Card

The MMAP package is a syscall interface to provide safe and efficient access to memory.

Supports for Darwin,Linux and Windows architectures.

Installation

> go get github.com/godcong/mmap@latest

Example

See examples folder

Similar Packages

  • github.com/godcong/mmap
  • golang.org/x/exp/mmap
  • github.com/riobard/godcong
  • launchpad.net/gommap
  • github.com/edsrzf/mmap-go

License

This Project used MIT and BSD license.

# Packages

No description provided by the author
No description provided by the author

# Functions

GenKey generates a random int id, not including 0.
No description provided by the author
Mlock locks the given byte slice.
Mmap maps length bytes of the file represented by the file descriptor fd into memory, starting at the byte offset.
Munmap unmaps the given byte slice.
Open memory-maps the named file for reading.
OpenFile memory-maps the named file for reading/writing, depending on the flag value.
OpenFileS memory-maps the named file for reading/writing, depending on the flag value.
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

MapFile reads/writes a memory-mapped file.
No description provided by the author