Documentation
¶
Overview ¶
Package zstd implements goDB's Encoder interface for ZStandard (de-)compression of flow data
Index ¶
Constants ¶
View Source
const (
MaxCompressionLevel = 19 // 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") // ErrContextCreationFailed denotes that instantiation of a ZSTD (de)compression context failed ErrContextCreationFailed = errors.New("context creation failed") )
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder compresses data with the ZStandard algorithm (omitting certain bounds-checks for performance reasons)
func (*Encoder) Decompress ¶
Decompress runs ZStandard decompression on "in" read from "src" and writes it to "out"
Click to show internal directories.
Click to hide internal directories.