package rfc1951

  1. Overview
  2. Docs
type cmd = int
type t = {
  1. buf : buf;
  2. mutable w : int;
  3. mutable r : int;
  4. mutable c : int;
}
val mask : t -> int -> int
val empty : t -> bool
val size : t -> int
val available : t -> int
val full : t -> bool
val length : t -> int
val is_empty : t -> bool
val is_full : t -> bool
val unsafe_get : buf -> int -> int
val unsafe_set : buf -> int -> int -> unit
exception Full
exception Empty
val push_exn : t -> int -> unit
val end_with_eob : t -> bool
val rem_exn : t -> int -> unit
val pop_exn : t -> int
val peek_exn : t -> int
val unsafe_junk : t -> unit
val junk_exn : t -> int -> unit
val copy : off:int -> len:int -> cmd
val literal : char -> int
val eob : int
val cmd : [< `Copy of int * int | `End | `Literal of char ] -> cmd
val code : int -> [> `Copy of int * int | `End | `Literal of char ]
val blit : t -> bigstring -> int -> int -> unit
val create : int -> t
val reset : t -> unit
val to_list : t -> [> `Copy of int * int | `End | `Literal of char ] list
val (<.>) : ('a -> 'b) -> ('c -> 'd) -> 'e -> 'f
val of_list : [< `Copy of int * int | `End | `Literal of char ] list -> t
OCaml

Innovation. Community. Security.