Versions in this module Expand all Collapse all v2 v2.0.0 Jul 3, 2021 Changes in this version + type Buffer struct + func New(numBits uint) *Buffer + func (buffer *Buffer) Clear() + func (buffer *Buffer) CommitBulkRead(length uint) + func (buffer *Buffer) CommitBulkWrite(length uint) + func (buffer *Buffer) Init(numBits uint) + func (buffer *Buffer) PrepareBulkRead(length uint) []byte + func (buffer *Buffer) PrepareBulkWrite(length uint) []byte + func (buffer *Buffer) Read(data []byte) (int, error) + func (buffer *Buffer) ReadByte() (byte, error) + func (buffer *Buffer) ReadFrom(r io.Reader) (int64, error) + func (buffer *Buffer) Write(data []byte) (int, error) + func (buffer *Buffer) WriteByte(ch byte) error + func (buffer *Buffer) WriteTo(w io.Writer) (int64, error) + func (buffer Buffer) Bytes() []byte + func (buffer Buffer) BytesView() []byte + func (buffer Buffer) DebugString() string + func (buffer Buffer) GoString() string + func (buffer Buffer) IsEmpty() bool + func (buffer Buffer) IsFull() bool + func (buffer Buffer) Len() uint + func (buffer Buffer) NumBits() uint + func (buffer Buffer) Size() uint + func (buffer Buffer) String() string + type Error byte + const ErrBadDistance + const ErrEmpty + const ErrFull + func (err Error) Error() string + func (err Error) GoString() string + type Hybrid struct + func NewHybrid(o HybridOptions) *Hybrid + func (hybrid *Hybrid) Advance() (buf []byte, matchDistance uint, matchLength uint, matchFound bool) + func (hybrid *Hybrid) Clear() + func (hybrid *Hybrid) CommitBulkRead(length uint) + func (hybrid *Hybrid) CommitBulkWrite(length uint) + func (hybrid *Hybrid) Init(o HybridOptions) + func (hybrid *Hybrid) PrepareBulkRead(length uint) []byte + func (hybrid *Hybrid) PrepareBulkWrite(length uint) []byte + func (hybrid *Hybrid) Read(data []byte) (int, error) + func (hybrid *Hybrid) ReadByte() (byte, error) + func (hybrid *Hybrid) SetWindow(data []byte) + func (hybrid *Hybrid) WindowClear() + func (hybrid *Hybrid) Write(data []byte) (int, error) + func (hybrid *Hybrid) WriteByte(ch byte) error + func (hybrid Hybrid) BufferNumBits() uint + func (hybrid Hybrid) DebugString() string + func (hybrid Hybrid) GoString() string + func (hybrid Hybrid) HashNumBits() uint + func (hybrid Hybrid) IsEmpty() bool + func (hybrid Hybrid) IsFull() bool + func (hybrid Hybrid) Len() uint + func (hybrid Hybrid) Options() HybridOptions + func (hybrid Hybrid) String() string + func (hybrid Hybrid) WindowNumBits() uint + type HybridOptions struct + BufferNumBits uint + HasMaxMatchDistance bool + HasMaxMatchLength bool + HasMinMatchLength bool + HashNumBits uint + MaxMatchDistance uint + MaxMatchLength uint + MinMatchLength uint + WindowNumBits uint + func (opts HybridOptions) Equal(other HybridOptions) bool + type Window struct + func NewWindow(numBits uint) *Window + func (window *Window) Clear() + func (window *Window) CommitBulkWrite(length uint) + func (window *Window) Init(numBits uint) + func (window *Window) PrepareBulkWrite(length uint) []byte + func (window *Window) Write(data []byte) (int, error) + func (window *Window) WriteByte(ch byte) error + func (window Window) Bytes() []byte + func (window Window) BytesView() []byte + func (window Window) DebugString() string + func (window Window) GoString() string + func (window Window) Hash(hashes ...hash.Hash) + func (window Window) Hash32(fn func() hash.Hash32) uint32 + func (window Window) IsZero() bool + func (window Window) LookupByte(distance uint) (byte, error) + func (window Window) NumBits() uint + func (window Window) Size() uint + func (window Window) String() string Other modules containing this package github.com/chronos-tachyon/buffer github.com/chronos-tachyon/buffer/v3