2 type bzlib_error
= BZ_CONFIG_ERROR
| BZ_SEQUENCE_ERROR
| BZ_PARAM_ERROR
| BZ_MEM_ERROR
| BZ_DATA_ERROR
| BZ_DATA_ERROR_MAGIC
| BZ_UNKNOWN_ERROR
3 exception Error
of string * bzlib_error
5 val string_of_error
: bzlib_error
-> string
9 type action
= BZ_RUN
| BZ_FLUSH
| BZ_FINISH
11 external compress_init
: int -> int -> int -> stream
= "camlzip_bzCompressInit"
13 stream
-> string -> int -> int -> bytes
-> int -> int -> action
15 = "camlzip_bzCompress_bytecode" "camlzip_bzCompress"
16 external compress_end
: stream
-> unit = "camlzip_bzCompressEnd"
19 external decompress_init
: int -> bool -> stream
= "camlzip_bzDecompressInit"
21 stream
-> string -> int -> int -> bytes
-> int -> int -> bool * int * int
22 = "camlzip_bzDecompress_bytecode" "camlzip_bzDecompress"
23 external decompress_end
: stream
-> unit = "camlzip_bzDecompressEnd"
25 external bzlib_version
: unit -> string = "camlzip_bzlibversion"