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