Documentation ¶
Index ¶
Constants ¶
View Source
const ( NoCompression = gzip.NoCompression BestSpeed = gzip.BestSpeed BestCompression = gzip.BestCompression DefaultCompression = gzip.DefaultCompression HuffmanOnly = gzip.HuffmanOnly )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compressor ¶
type Compressor struct {
// contains filtered or unexported fields
}
func New ¶
func New(level int) *Compressor
func (*Compressor) Compress ¶
func (c *Compressor) Compress(data []byte) (compressedData []byte, err error)
func (*Compressor) Decompress ¶
func (c *Compressor) Decompress(data []byte) (decompressedData []byte, err error)
Click to show internal directories.
Click to hide internal directories.