Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultBufferSize = 65536
DefaultBufferSize is the default buffer size used by the Compressor.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compressor ¶
type Compressor struct {
// contains filtered or unexported fields
}
Compressor is a wrapper around a gzip.Writer that reads from an io.Reader and writes to an internal buffer. The internal buffer is used to store compressed data until it is read by the caller.
func NewCompressor ¶
func NewCompressor(r io.Reader, bufSz int) (*Compressor, error)
NewCompressor returns an instantiated Compressor that reads from r and compresses the data using gzip.
type Decompressor ¶
Decompressor is a wrapper around a gzip.Reader that reads from an io.Reader and decompresses the data.
func NewDecompressor ¶
func NewDecompressor(r io.Reader) *Decompressor
NewDecompressor returns an instantied Decompressor that reads from r and decompresses the data using gzip.
Click to show internal directories.
Click to hide internal directories.