Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compressor ¶
type Compressor struct { BufSize int NewWriter func(io.Writer) io.WriteCloser NewReader func(io.Reader) (io.ReadCloser, error) }
Compressor is a common interface for all compressions.
func (*Compressor) Compress ¶
func (c *Compressor) Compress(src []byte) []byte
Compress encodes the raw bytes.
func (*Compressor) Decompress ¶
func (c *Compressor) Decompress(src []byte) ([]byte, error)
Decompress decodes the encoded bytes.
Click to show internal directories.
Click to hide internal directories.