Documentation ¶
Index ¶
Constants ¶
View Source
const ZstdLevel = 1 // fastest
ZstdLevel compression level used by Zstd
Variables ¶
This section is empty.
Functions ¶
func NewReader ¶ added in v1.8.68
func NewReader(_ []byte, _ uint64, readers []io.ReadCloser) (io.ReadCloser, error)
NewReader returns a new bzip2 io.ReadCloser.
Types ¶
type Compressor ¶
type Compressor interface { Name() string CompressBound(int) int Compress(dst, src []byte) (int, error) Decompress(dst, src []byte) (int, error) }
func NewCompressor ¶
func NewCompressor(level string) Compressor
type LZ4 ¶
type LZ4 struct{}
func (LZ4) CompressBound ¶
CompressBound max size of compressed data
func (LZ4) Decompress ¶
Decompress using LZ4 algorithm
type ZStandard ¶
type ZStandard struct {
// contains filtered or unexported fields
}
ZStandard implements Compressor interface using zstd library
func (ZStandard) CompressBound ¶
CompressBound max size of compressed data
func (ZStandard) Decompress ¶
Decompress using Zstd
Click to show internal directories.
Click to hide internal directories.