Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PGZip ¶
type PGZip struct{}
func (PGZip) Decode ¶
The Decode method will first decode and then overwrite the data in the input *bytes.Buffer.
func (PGZip) Encode ¶
Encode compresses the given bytes using pgzip compression, returning the compressed data in a new bytes.Buffer.
The reason why we choose pgzip instead of gzip is because it has special advantages when compressing large amounts of data. When the data block exceeds 1MB, pgzip will obtain a very considerable performance improvement.
Click to show internal directories.
Click to hide internal directories.