Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Interface to miniz.c via Zlib-like functions
This is very slightly modified from Leroy's CamlZip.
Compress data. The string -> int
function is an input: given a buffer, it writes some data to it, returning the number of bytes written. The string ->
int -> unit
function is an output: giving a buffer and a number of compressed bytes written. The optional argument level
gives the zlib compression level (the default is 6). The optional argument header
will, if true
, output a zlib header (the default is true
).