README ¶ a simple mmap file lib. example //f, e := os.OpenFile(fpath, os.O_RDWR, 0644) f, e := stmmap.CreateFile(fpath, 65536*2) stmmap.NewMmap(f, 65536, 65536) Expand ▾ Collapse ▴ Documentation ¶ Rendered for linux/amd64 windows/amd64 darwin/amd64 js/wasm Overview ¶ mmap.go Index ¶ func CreateFile(name string, length int64) (*os.File, error) type Mmap func NewMmap(f *os.File, offset int64, length int) (Mmap, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CreateFile ¶ func CreateFile(name string, length int64) (*os.File, error) Types ¶ type Mmap ¶ type Mmap interface { Data() []byte Size() uint32 Flush() error Lock() error Unlock() error Unmap() error } func NewMmap ¶ func NewMmap(f *os.File, offset int64, length int) (Mmap, error) Source Files ¶ View all Source files mmap.go mmap_unix.go Click to show internal directories. Click to hide internal directories.