Extends Core_kernel.Bigbuffer
.
include module type of sig ... end
val sexp_of_t : t ‑> Base.Sexp.t
val create : int ‑> t
val contents : t ‑> string
val contents_bytes : t ‑> bytes
val blit : (t, bytes) Base__.Blit_intf.blit
val blito : (t, bytes) Base__.Blit_intf.blito
val unsafe_blit : (t, bytes) Base__.Blit_intf.blit
val sub : (t, bytes) Base__.Blit_intf.sub
val subo : (t, bytes) Base__.Blit_intf.subo
val nth : t ‑> int ‑> char
val length : t ‑> int
val clear : t ‑> unit
val reset : t ‑> unit
val add_char : t ‑> char ‑> unit
val add_string : t ‑> string ‑> unit
val add_substring : t ‑> string ‑> pos:int ‑> len:int ‑> unit
val add_bytes : t ‑> bytes ‑> unit
val add_subbytes : t ‑> bytes ‑> pos:int ‑> len:int ‑> unit
val big_contents : t ‑> Core_kernel.Bigstring.t
val volatile_contents : t ‑> Core_kernel.Bigstring.t
val add_bigstring : t ‑> Core_kernel.Bigstring.t ‑> Core_kernel__.Import.unit
val add_substitute : t ‑> (Core_kernel__.Import.string ‑> Core_kernel__.Import.string) ‑> Core_kernel__.Import.string ‑> Core_kernel__.Import.unit
module Format = Core_kernel__Bigbuffer.Format
module Printf = Core_kernel__Bigbuffer.Printf
val __internal : t ‑> Core_kernel__.Bigbuffer_internal.t
val add_channel : t ‑> Core__.Import.In_channel.t ‑> int ‑> unit
add_channel b ic n
reads exactly n
characters from the input channel ic
and
stores them at the end of buffer b
. Raises End_of_file
if the channel contains
fewer than n
characters.
val output_buffer : Core__.Import.Out_channel.t ‑> t ‑> unit
output_buffer oc b
writes the current contents of buffer b
on the output channel
oc
.