diff --git a/README.md b/README.md index 8e00b50..3aaa6d8 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ is a high-level wrapper around [zlib](https://zlib.net/). ## Installation ```clojure -(load "https://veitheller.de/git/carpentry/zlib.git@0.0.1") +(load "git@git.veitheller.de:carpentry/zlib.git@0.0.2") ``` ## Usage diff --git a/docs/ZLib.html b/docs/ZLib.html index 7b4f578..6feb182 100644 --- a/docs/ZLib.html +++ b/docs/ZLib.html @@ -18,20 +18,32 @@
is a high-level wrapper around zlib.
+is a high-level wrapper around zlib.
(load "https://veitheller.de/git/carpentry/zlib.git@0.0.1") +
,(load "git@git.veitheller.de:carpentry/zlib.git@0.0.2")
Usage
The
ZLib
module provides only two functions,inflate
and @@ -55,98 +67,101 @@ levels are defined inZLib.ZLevel
, and areBestSpeed BestCompression
, andDefaultCompression
, which is, well, the default. -
- Module -
- - - --
is a type used in conjunction with +
+ Module +
+ + + ++
is a type used in conjunction with
deflate-with
. It controls the compression level.
The constructors are NoCompression
, BestSpeed
, BestCompression
, and
DefaultCompression
, which is, well, the default.
- (Fn [(Ref String a)] (Result ZBytes String)) -
-- (deflate s) --
-
takes a bytes object s
and returns a Result
.
+ (Fn [(Ref String a)] (Result ZLib.ZBytes String)) +
++ (deflate s) ++
+
takes a bytes object s
and returns a Result
.
The Result
will be a Success
containing the deflated bytes if all goes
well, and an Error
returning an error message otherwise.
It is equivalent to calling deflate-with
with
(ZLevel.DefaultCompression)
.
- (Fn [(Ref String a), ZLib.ZLevel] (Result ZBytes String)) -
-- (deflate-with s level) --
-
takes a bytes object s
, a Zlevel
level
and returns
+
+ (Fn [(Ref String a), ZLib.ZLevel] (Result ZLib.ZBytes String)) +
++ (deflate-with s level) ++
+
takes a bytes object s
, a Zlevel
level
and returns
a Result
.
The Result
will be a Success
containing the deflated bytes if all goes
well, and an Error
returning an error message otherwise.
- (Fn [ZBytes] (Result String String)) -
-- (inflate s) --
-
takes a bytes object s
and returns a Result
.
+ (Fn [ZLib.ZBytes] (Result String String)) +
++ (inflate s) ++
+
takes a bytes object s
and returns a Result
.
The Result
will be a Success
containing the inflated string if all goes
well, and an Error
returning an error message otherwise.