Expand description
Snappy codec (snap Rust backend). Level is accepted but ignored.
Kafka uses the xerial-snappy framing format (NOT the standard snappy framing
format). This consists of a 16-byte magic header followed by a sequence of
snappy-compressed blocks, each preceded by a big-endian u32 length.
Functions§
- compress_
with_ level - Compress
payload. Thelevelparameter is accepted for API symmetry but has no effect — Snappy has no tunable level. - decompress
- Decompress
payload, bounded bysuper::MAX_DECOMPRESSED_LEN. - decompress_
bounded - Decompress
payload, refusing to produce more thanmax_lenbytes.