Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type S2 ¶
type S2 struct{}
type Snappy ¶
type Snappy struct{}
func (Snappy) Decode ¶
The Decode method will first decode and then overwrite the data in the input *bytes.Buffer.
func (Snappy) Encode ¶
Encode compresses the given bytes using Snappy compression, returning the compressed data in a new bytes.Buffer.
Snappy only has the advantage of compression speed, and its compression ratio is ridiculously low. This compression engine is not recommended under normal circumstances and it causes additional overhead.
Click to show internal directories.
Click to hide internal directories.