Module Protocol.Buffer

Handles allocating Iobuf.t and making sure there's enough space in it.

val get_header_chunk : unit -> (Core.read_) Iobuf.t
val ensure_free : int -> unit
val is_empty : unit -> bool

Is the main (short message) buffer empty?

val get_chunks : unit -> (Core.read_writeIobuf.no_seek) Iobuf.t list
module Unsafe_internals : sig ... end

To aid producing test cases for Reader.