Documentation
¶
Overview ¶
Package lz4 implements goDB's Encoder interface for lz4 (de-)compression of flow data
Index ¶
Constants ¶
View Source
const (
MaxCompressionLevel = 12 // MaxCompressionLevel denotes the maximum useful compression level
)
Variables ¶
View Source
var ( // ErrBufferSizeMismatch denotes that the allocated buffer is insufficient in size ErrBufferSizeMismatch = errors.New("buffer size mismatch for compressed data") // ErrIncorrectNumBytesRead denotes that the number of bytes read during decompression // does not match the expected size ErrIncorrectNumBytesRead = errors.New("incorrect number of bytes read from data source during decompression") )
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder compresses data with the LZ4 algorithm (omitting certain bounds-checks for performance reasons)
func (*Encoder) Decompress ¶
Decompress runs LZ4 decompression on "in" read from "src" and writes it to "out"
Click to show internal directories.
Click to hide internal directories.