Versions in this module Expand all Collapse all v0 v0.0.1 Jan 1, 2024 Changes in this version + const InMemoryFileName + var ErrReadOnly = errors.New("read-only") + type Pager struct + func Open(fileName string, blockSz int, readOnly bool, mode os.FileMode) (*Pager, error) + func (p *Pager) Alloc(n int) (uint64, error) + func (p *Pager) Close() error + func (p *Pager) Count() uint64 + func (p *Pager) Free(n int) error + func (p *Pager) Marshal(id uint64, v encoding.BinaryMarshaler) error + func (p *Pager) PageSize() int + func (p *Pager) Read(id uint64) ([]byte, error) + func (p *Pager) ReadAt(dst []byte, offset uint64) error + func (p *Pager) ReadOnly() bool + func (p *Pager) Remove() + func (p *Pager) Stats() Stats + func (p *Pager) String() string + func (p *Pager) Unmarshal(id uint64, into encoding.BinaryUnmarshaler) error + func (p *Pager) Write(id uint64, d []byte) error + func (p *Pager) WriteAt(src []byte, offset uint64) error + type RandomAccessFile interface + Name func() string + Truncate func(size int64) error + type Stats struct + Allocs int + Reads int + Writes int + func (s Stats) String() string