Implement pure OCaml zstd compression/decompression library
Add complete zstd implementation in ~3,000 lines of pure OCaml:
- Full decompression: Raw, RLE, and Compressed blocks
- FSE (Finite State Entropy) decoding with predefined/custom tables
- Huffman 1-stream and 4-stream decoding
- Sequence decoding with repeat offset handling
- xxHash-64 checksum computation
- Dictionary support for decompression
- Basic compression with raw block output
- Roundtrip compress/decompress working
Source files:
- constants.ml: Magic numbers, FSE tables, sequence baselines
- bit_reader.ml: Forward/backward bitstream reading
- bit_writer.ml: Forward/backward bitstream writing
- fse.ml: FSE encode/decode
- huffman.ml: Huffman encode/decode
- xxhash.ml: xxHash-64 checksums
- zstd_decode.ml: Frame/block decompression
- zstd_encode.ml: Frame/block compression
- zstd.ml/mli: Public API
All 9 tests pass including golden decompression tests from the
official zstd test suite.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>