Versions in this module Expand all Collapse all v1 v1.7.1 Oct 30, 2024 v1.7.0 Oct 30, 2024 Changes in this version + var NewFile = errors.New("Create a new file") + func Madvise(b []byte, readahead bool) error + func Mmap(fd *os.File, writable bool, size int64) ([]byte, error) + func Msync(b []byte) error + func Munmap(b []byte) error + func SyncDir(dir string) error + type MmapFile struct + Data []byte + Fd *os.File + func OpenMmapFile(filename string, flag int, maxSz int) (*MmapFile, error) + func OpenMmapFileUsing(fd *os.File, sz int, writable bool) (*MmapFile, error) + func (m *MmapFile) AllocateSlice(sz, offset int) ([]byte, int, error) + func (m *MmapFile) Bytes(off, sz int) ([]byte, error) + func (m *MmapFile) Close(maxSz int64) error + func (m *MmapFile) Delete() error + func (m *MmapFile) NewReader(offset int) io.Reader + func (m *MmapFile) Slice(offset int) []byte + func (m *MmapFile) Sync() error + func (m *MmapFile) Truncate(maxSz int64) error + type Source struct + func NewSource(path string, capacity int) (*Source, error) + func (s *Source) Data() []byte + func (s *Source) Grow(capacity int) []byte + func (s *Source) Release() error