ZLib.ZLevel

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.

BestCompression

instantiate

(Fn [] ZLib.ZLevel)

creates a BestCompression.

BestSpeed

instantiate

(Fn [] ZLib.ZLevel)

creates a BestSpeed.

DefaultCompression

instantiate

(Fn [] ZLib.ZLevel)

creates a DefaultCompression.

NoCompression

instantiate

(Fn [] ZLib.ZLevel)

creates a NoCompression.

copy

instantiate

(Fn [(Ref ZLib.ZLevel a)] ZLib.ZLevel)

copies a ZLevel.

delete

instantiate

(Fn [ZLib.ZLevel] ())

deletes a ZLib.ZLevel. This should usually not be called manually.

get-tag

instantiate

(Fn [(Ref ZLib.ZLevel a)] Int)

Gets the tag from a ZLevel.

prn

instantiate

(Fn [(Ref ZLib.ZLevel a)] String)

converts a ZLib.ZLevel to a string.

str

instantiate

(Fn [(Ref ZLib.ZLevel a)] String)

converts a ZLib.ZLevel to a string.

to-int

defn

(Fn [ZLib.ZLevel] Int)

                        (to-int l)