Documentation
¶
Index ¶
- Variables
- type Codec
- func (c *Codec) Compress(data []byte) ([]byte, error)
- func (c *Codec) Decode(data []byte, value interface{}) error
- func (c *Codec) Decompress(compressed []byte) ([]byte, error)
- func (c *Codec) Encode(value interface{}) ([]byte, error)
- func (c *Codec) Marshal(value interface{}) ([]byte, error)
- func (c *Codec) Unmarshal(compressed []byte, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Dictionary = []byte{}/* 112640 elements not displayed */
Dictionary is a byte slice that contains the result of running the Zstandard training mode on the DPS index. This allows zstandard to achieve a better compression ratio, specifically for small data. See http://facebook.github.io/zstd/#small-data See https://github.com/facebook/zstd/blob/master/doc/zstd_compression_format.md#dictionary-format
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec struct {
// contains filtered or unexported fields
}
Codec encodes and decodes Go values using cbor encoding and zstandard compression.
func (*Codec) Decompress ¶
Decompress reads compressed data that uses the zstandard format and returns the original uncompressed byte slice.
Click to show internal directories.
Click to hide internal directories.