Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chunk ¶
type Chunk interface { Bytes() []byte Clear() Encoding() Encoding Appender() (Appender, error) Iterator() Iterator }
Chunk holds a sequence of sample pairs that can be iterated over and appended to.
func NewXORChunk ¶
func NewXORChunk() Chunk
NewXORChunk returns a new chunk with XOR encoding of the given size.
type Iterator ¶
Iterator is a simple iterator that can only get the next value.
func NewNopIterator ¶
func NewNopIterator() Iterator
NewNopIterator returns a new chunk iterator that does not hold any data.
type XORChunk ¶
type XORChunk struct {
// contains filtered or unexported fields
}
XORChunk holds XOR encoded sample data.
func (*XORChunk) Appender ¶
Appender implements the Chunk interface. new implementation, doesnt read the existing buffer, assume its new
Click to show internal directories.
Click to hide internal directories.