Versions in this module Expand all Collapse all v1 v1.2.1 Mar 4, 2024 Changes in this version type MmapAllocator + func (mal *MmapAllocator) Flush() error v1.2.0 Jul 13, 2022 Changes in this version + var End = errors.New("END") + var OsPageMask = OsPageSize - 1 + var OsPageSize = os.Getpagesize() + type BytesAllocator struct + func NewBytesAllocator(cap int) *BytesAllocator + func (bsa *BytesAllocator) AllocAt(offset int64, n int) ([]byte, error) + func (bsa *BytesAllocator) Release() + func (bsa *BytesAllocator) Resize(size int) error + func (bsa *BytesAllocator) Size() int + type MmapAllocator struct + func NewMmapAllocator(f *os.File, offset int64, mmSize int, mapPort, mapFlag int, lock bool) (*MmapAllocator, error) + func (mal *MmapAllocator) AllocAt(offset int64, n int) ([]byte, error) + func (mal *MmapAllocator) Release() + func (mal *MmapAllocator) Resize(foffset int64, mmSize int) error + func (mal *MmapAllocator) Size() int