Documentation ¶
Index ¶
- func Compress(in io.Reader, out io.Writer) error
- func CompressBytes(src []byte) []byte
- func CompressFile(file, to string) error
- func Decompress(in io.Reader, out io.Writer) error
- func DecompressBytes(src []byte) ([]byte, error)
- func DecompressFile(locker *sync.RWMutex, file, to string) error
- func ZSTDCompress(dst, src []byte, compressionLevel int) ([]byte, error)
- func ZSTDDecompress(dst, src []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompressBytes ¶
Compress a buffer. If you have a destination buffer, the allocation in the call can also be eliminated.
func CompressFile ¶
func DecompressBytes ¶
Decompress a buffer. We don't supply a destination buffer, so it will be allocated by the decoder.
func ZSTDDecompress ¶
ZSTDDecompress decompresses a block using ZSTD algorithm.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.