package
Version:
v1.117.0
Opens a new window with list of versions in this module.
Published: May 9, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
Documentation
¶
func CompressLevel(dst, src []byte, compressionLevel int) []byte
CompressLevel appends compressed src to dst and returns the result.
The given compressionLevel is used for the compression.
Decompress appends decompressed src to dst and returns the result.
PutReader returns zr to the pool, so it could be reused via GetReader.
PutWriter returns zw to the pool, so it could be reused via GetWriter.
Reader is zstd reader
GetReader returns Reader for reading zstd-uncompressed data from r.
When the reader is no longer needed, return back it to the pool via PutReader().
NewReader returns zstd reader for the given r.
Writer is zstd writer
GetWriter returns Writer for writing zstd-compressed data to w.
When the writer is no longer needed, return back it to the pool via PutWriter.
NewWriterLevel returns zstd writer for the given w and level.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.