Skip to main content

•deflate — Compression

•deflate bytes decompresses gzip data and returns the bytes. •deflate⁻ data compresses data with gzip. It compresses text as UTF-8, and numbers as bytes from 0 to 255, as •nput writes them. •deflate and •deflate⁻ both take a format name on the left: "gzip", "zlib" or "deflate" (raw DEFLATE).

•ucs •deflate •deflate⁻ "hello"          ⍝ "hello"
"zlib" •deflate "zlib" •deflate⁻ 1 2 3   ⍝ [1 2 3]ₓ

Errors: DOMAIN for an unknown format, byte values outside 0 to 255, or data that doesn’t decompress.