package camlpdf

  1. Overview
  2. Docs
exception Error of string * string
type stream
type flush_command =
  1. | Z_NO_FLUSH
  2. | Z_SYNC_FLUSH
  3. | Z_FULL_FLUSH
  4. | Z_FINISH
val deflate_init : int -> bool -> stream
val deflate : stream -> bytes -> int -> int -> bytes -> int -> int -> flush_command -> bool * int * int
val deflate_end : stream -> unit
val inflate_init : bool -> stream
val inflate : stream -> bytes -> int -> int -> bytes -> int -> int -> flush_command -> bool * int * int
val inflate_end : stream -> unit
val buffer_size : int
val compress : ?level:int -> ?header:bool -> (bytes -> int) -> (bytes -> int -> 'a) -> unit
val uncompress : ?header:bool -> (bytes -> int) -> (bytes -> int -> 'a) -> unit
OCaml

Innovation. Community. Security.