Versions in this module Expand all Collapse all v0 v0.1.0 Jul 11, 2023 Changes in this version + func NewBufferedFile(ctx context.Context, file File[A], blockSize A, cacheSize int) *bufferedFile[A] + func NewStatefulFile(file File[A]) *statefulFile[A] + type File interface + Name func() string + Size func() A + WriteAt func(p []byte, off A) (n int, err error) + type OSFile struct + func (f *OSFile[A]) ReadAt(dat []byte, paddr A) (int, error) + func (f *OSFile[A]) Size() A + func (f *OSFile[A]) WriteAt(dat []byte, paddr A) (int, error) + type ReaderAt interface + ReadAt func(p []byte, off A) (n int, err error) + type Ref struct + Addr A + Data T + File File[A] + func (r *Ref[A, T]) Read() error + func (r *Ref[A, T]) Write() error + type Sequence interface + SeqGet func(pos K) V + SeqLen func() K + type SliceSequence []V + func (s SliceSequence[K, V]) SeqGet(i K) V + func (s SliceSequence[K, V]) SeqLen() K + type StringSequence string + func (s StringSequence[K]) SeqGet(i K) byte + func (s StringSequence[K]) SeqLen() K