Ringbuffer.Make_ext
Create an extensible ringbuffer: the size of the ringbuffer is extended if write space is too small at some point.
type buffer = B.t
A buffer of elements.
val create : int -> t
Create a ringbuffer of given size.
val read_space : t -> int
Size of data available for reading.
val write_space : t -> int
Size of space available for writing.
val read_advance : t -> int -> unit
Drop data.
val write_advance : t -> int -> unit
Advance the write pointer.