mmap

package
v0.0.0-...-5bc13c5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MmapFile

type MmapFile struct {
	// contains filtered or unexported fields
}

MmapFile 持有 mmap 的句柄

func OpenMmapFile

func OpenMmapFile(path string) (mf *MmapFile, retErr error)

OpenMmapFile 打开一个 mmap 句柄

func (*MmapFile) Bytes

func (f *MmapFile) Bytes() []byte

func (*MmapFile) Close

func (f *MmapFile) Close() error

Close 关闭句柄

func (*MmapFile) File

func (f *MmapFile) File() *os.File

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL