Module Rfc1951.Queue

type cmd = int
type buf = ( cmd, Stdlib.Bigarray.int_elt, Stdlib.Bigarray.c_layout ) Stdlib.Bigarray.Array1.t
type t = {
buf : buf;
mutable w : int;
mutable r : int;
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