Documentation
¶
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 is a data compressor that uses zstd.
func (Compressor) CompressBytes ¶
func (c Compressor) CompressBytes(src []byte) []byte
CompressBytes compresses the input via zstd.
func (Compressor) DecompressBytes ¶
func (c Compressor) DecompressBytes(src []byte) []byte
DecompressBytes tries to decompress the input as best it can. If it detects the input to be zstd, it decompresses using that algorithm. Otherwise, it assumes the input bytes aren't compressed and returns them as-is.
Click to show internal directories.
Click to hide internal directories.