Liking cljdoc? Tell your friends :D

zlib-tiny

A Clojure library designed to cover basic need of packing|unpacking exchange messages, storable chunks etc. Not more, but not less

zlib tiny

Usage

Add the following to your Leiningen’s project.clj:

[net.tbt-post/zlib-tiny "0.2.3"]
;; ZLib Example

(bytes->str
 (force-byte-array
  (inflate
   (deflate
    (str->bytes "test it!")))))

(-> "test it!"
    str->bytes
    deflate
    inflate
    force-byte-array
    bytes->str)
;; GZip Example

(bytes->str
 (gunzip
  (gzip
   (str->bytes "test it!"))))

(-> "test it!"
    str->bytes
    gzip
    gunzip
    bytes->str)
;; CRC32 example
(crc32 (.getBytes "123456789"))
=> 3421780262

Manual Build

$ lein install

License

Copyright © 2017-2018

Distributed under the Apache License v 2.0

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close