Snappy

object Snappy

Snappy raw block format (Google): a byte-oriented LZ77 with no entropy stage. decompress reads any conformant stream. compress emits a valid all-literal stream, which is correct and fast. It has no back-reference matching, so it does not shrink the input.

Functions

Link copied to clipboard

Compress data into a valid (all-literal) Snappy block.

Link copied to clipboard
fun decompress(src: ByteArray, limits: ArchiveLimits = ArchiveLimits.DEFAULT): ByteArray

Decompress a Snappy block, enforcing limits.