Documentation ¶
Overview ¶
Package zstd compression and decompression functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Compressor ¶
type Compressor struct {
// contains filtered or unexported fields
}
Compressor implements Compressor using zstd compression.
func NewCompressor ¶
func NewCompressor(opts ...zstd.EOption) (*Compressor, error)
NewCompressor creates new Compressor.
func (*Compressor) Compress ¶
func (c *Compressor) Compress(src, dest []byte) ([]byte, error)
Compress data using zstd.
func (*Compressor) Decompress ¶
func (c *Compressor) Decompress(src, dest []byte) ([]byte, error)
Decompress data using zstd.
func (*Compressor) DecompressedSize ¶
func (c *Compressor) DecompressedSize(src []byte) (int64, error)
DecompressedSize returns the size of the decompressed data.
Click to show internal directories.
Click to hide internal directories.