Versions in this module Expand all Collapse all v0 v0.1.0 Feb 23, 2026 Changes in this version + func Slice(src Source, start, end int64) ([]byte, error) + type BoundedSource struct + func NewBounded(base Source, start, end int64) (*BoundedSource, error) + func (s *BoundedSource) BaseEnd() int64 + func (s *BoundedSource) BaseStart() int64 + func (s *BoundedSource) Len() int64 + func (s *BoundedSource) Name() string + func (s *BoundedSource) ReadAt(p []byte, off int64) (int, error) + type BufferedSource struct + func NewBuffered(base Source, blockSize int64) *BufferedSource + func (s *BufferedSource) Len() int64 + func (s *BufferedSource) Name() string + func (s *BufferedSource) ReadAt(p []byte, off int64) (int, error) + func (s *BufferedSource) Revision() Revision + type BytesSource struct + func ApplyEdits(src Source, edits []Edit) (*BytesSource, error) + func NewBytes(name string, b []byte) *BytesSource + func (s *BytesSource) Bytes() []byte + func (s *BytesSource) Len() int64 + func (s *BytesSource) Name() string + func (s *BytesSource) ReadAt(p []byte, off int64) (int, error) + func (s *BytesSource) Revision() Revision + type Edit struct + End int64 + Insert []byte + Start int64 + type EditError struct + Detail string + Edit Edit + Index int + Kind EditErrorKind + func (e *EditError) Error() string + type EditErrorKind uint8 + const EditErrorInvertedRange + const EditErrorNegativeOffset + const EditErrorNilSource + const EditErrorOutOfBounds + const EditErrorOverlap + const EditErrorUnsorted + func (k EditErrorKind) String() string + type FileSource struct + func OpenFile(path string) (*FileSource, error) + func (s *FileSource) Close() error + func (s *FileSource) Len() int64 + func (s *FileSource) Name() string + func (s *FileSource) ReadAt(p []byte, off int64) (int, error) + func (s *FileSource) Revision() Revision + type RangeError struct + End int64 + Kind RangeErrorKind + Len int64 + Start int64 + func (e *RangeError) Error() string + type RangeErrorKind uint8 + const RangeErrorNegativeOffset + const RangeErrorNilSource + const RangeErrorOutOfBounds + const RangeErrorStartAfterEnd + func (k RangeErrorKind) String() string + type Revision int64 + type Revisioned interface + Revision func() Revision + type Source interface + Len func() int64 + Name func() string + ReadAt func(p []byte, off int64) (n int, err error) + func WrapBuffered(base Source) Source