Zlib compression utilities compatible with Python's zlib.compress/decompress.
Zlib compression utilities compatible with Python's zlib.compress/decompress.
(compress-if-beneficial data)Compress data with zlib if it reduces size. Returns [compressed? data].
Compress data with zlib if it reduces size. Returns [compressed? data].
(decompress data max-size)Decompress zlib-compressed data (compatible with Python's zlib.decompress).
Throws ::ex/forbidden if the decompressed output exceeds max-size bytes.
Decompress zlib-compressed data (compatible with Python's zlib.decompress). Throws ::ex/forbidden if the decompressed output exceeds `max-size` bytes.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |