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 unsafe_get : buf -> int -> int
val unsafe_set : buf -> int -> int -> unit
val push_exn : t -> int -> unit
val end_with_eob : t -> bool
val rem_exn : t -> int -> unit
val unsafe_junk : t -> unit
val junk_exn : t -> int -> unit
val copy : off:int -> len:int -> cmd
val literal : char -> int
val cmd : [< `Copy of int * int | `End | `Literal of char ] -> cmd
val code : int -> [> `Copy of int * int | `End | `Literal of char ]
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