buddy.util.deflate

Interface to DEFLATE compression algorithm.

compress

(compress input)(compress input {:keys [nowrap], :or {nowrap true}})

Given a plain byte array, compress it and return an other byte array.

uncompress

(uncompress input)(uncompress input {:keys [nowrap buffer-size], :or {nowrap true, buffer-size 2048}, :as opts})

Given a compressed data as byte-array, uncompress it and return as an other byte array.