Lz4
object Lz4
LZ4: block format (the LZ77 token codec) + frame format (.lz4, magic 0x184D2204). Pure-Kotlin, with no entropy stage, so it is fast and cheap.
Decoder reads any conformant frame (skipping/honoring the optional block and content xxHash32 checks). Encoder writes a minimal frame (block-independent, 4 MiB max block, no checksums) with a real greedy hash-chain block compressor and a stored-block fallback when a block doesn't shrink.