Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotAvailable = errors.New("Compression type is unavailable (not linked into the binary)")
)
Common errors.
Functions ¶
Types ¶
type Type ¶
type Type uint8
Type indicates the compression format, as implemented in another package.
const ( None Type = iota Snappy // import _ "bitbucket.org/pcastools/compress/snappy" Gzip // import _ "bitbucket.org/pcastools/compress/gzip" Zlib // import _ "bitbucket.org/pcastools/compress/zlib" Zstd // import _ "bitbucket.org/pcastools/compress/zstd" S2 // import _ "bitbucket.org/pcastools/compress/s2" )
The supported compression formats.
func (Type) Available ¶
Available reports whether the given compression type is linked into the binary.
func (Type) NewReader ¶
NewReader creates a new reader for this compression type, reading from the given io.Reader r. It is the caller's responsibility to call Close on the reader when done.
Click to show internal directories.
Click to hide internal directories.