moonzip — compression for MoonBit: DEFLATE and gzip, one algorithm to a package.
let small = @gzip.gzip(body[:])
let back = @gzip.gunzip(small[:]) // raises if the checksum disagrees
// The raw stream, for a protocol that carries its own framing.
@deflate.deflate(body[:])
@deflate.inflate(stream[:])| Package | What | Specification |
|---|---|---|
| deflate | DEFLATE, both directions | RFC 1951 |
| gzip | The gzip container, with CRC-32 | RFC 1952 |
| zlib | The zlib container, with Adler-32 | RFC 1950 |
moon add moonbitstack/moonzipInstall
Download zipmoonzip — compression for MoonBit: DEFLATE and gzip, one algorithm to a package.