uuseg
Uuseg_buf
`Uchar buffers
`Uchar
ppxlib
yojson
type t
The type for `Uchar buffers.
val create : int -> t
create n is a buffer of initial size n.
create n
n
val copy : t -> t
copy b is a copy of b.
copy b
b
val empty : t -> bool
empty b is true iff b is empty.
empty b
true
val len : t -> int
len b is b's length.
len b
val add : t -> [ `Uchar of Uchar.t ] -> unit
add b u adds u at the end of b.
add b u
u
val flush : t -> [> `Uchar of Uchar.t ]
flush b is the first `Uchar of b and removes it from b.
flush b
val get_first : t -> Uchar.t
get_first b is the first `Uchar of b, if any.
get_first b