const MAGIC
pub const MAGIC = 4247762216Purpose
Constant MAGIC, defining protocol or algorithm parameters.
#compress/zstd`github.com/klauspost/compress/zstd`: Zstandard compression / decompression format per RFC 8878. Generates and parses standard Zstandard frames (magic 0xFD2FB528). Supports Raw_Block and RLE_Block encoding and decoding. Compressed blocks (Huffman / FSE) are not currently supported.
const MAGICpub const MAGIC = 4247762216Constant MAGIC, defining protocol or algorithm parameters.
const BLOCK_RAWpub const BLOCK_RAW = 0Constant BLOCK_RAW, defining protocol or algorithm parameters.
const BLOCK_RLEpub const BLOCK_RLE = 1Constant BLOCK_RLE, defining protocol or algorithm parameters.
const MAX_BLOCK_SIZEpub const MAX_BLOCK_SIZE = 131072Constant MAX_BLOCK_SIZE, defining protocol or algorithm parameters.
compresspub fn compress(src &string) stringExecute compress.
src &stringstring — result string
decompresspub fn decompress(src &string) stringExecute decompress. Throws on failure; handle the error or propagate it to the caller.
src &stringstring — result string