Module Data_encoding__.Binary_stream

type t
type buffer = {
buffer : Stdlib.Bytes.t;
ofs : int;
len : int;
}
exception Need_more_data
val is_empty : t -> bool
val empty : t
val of_buffer : buffer -> t
val read : t -> int -> buffer * t
val push : Stdlib.Bytes.t -> t -> t