Up

Module Bigbuffer

Signature

val sexp_of_t : t -> Sexplib.Sexp.t
val create : int -> t
val contents : t -> string
val big_contents : t -> Core_kernel.Bigstring.t
val volatile_contents : t -> Core_kernel.Bigstring.t
val blit : (t, string) Core_kernel.Blit_intf.blit
val blito : (t, string) Core_kernel.Blit_intf.blito
val unsafe_blit : (t, string) Core_kernel.Blit_intf.blit
val sub : (t, string) Core_kernel.Blit_intf.sub
val subo : (t, string) Core_kernel.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 -> int -> int -> unit
val add_substitute : t -> (string -> string) -> string -> unit
val add_buffer : t -> t -> unit
module Format : sig .. end
module Printf : sig .. end
val __internal : t -> Core_kernel.Bigbuffer_internal.t
val add_channel : t -> Core_kernel.Std.in_channel -> int -> unit

add_channel b ic n reads exactly n character from the input channel ic and stores them at the end of buffer b. Raise End_of_file if the channel contains fewer than n characters.

val output_buffer : Core_kernel.Std.out_channel -> t -> unit

output_buffer oc b writes the current contents of buffer b on the output channel oc.