Module Unprime_buffer.Buffer
include module type of Stdlib.Buffer with type Buffer.t = Stdlib.Buffer.t
val create : int -> t
val contents : t -> string
val to_bytes : t -> bytes
val sub : t -> int -> int -> string
val blit : t -> int -> bytes -> int -> int -> unit
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_utf_8_uchar : t -> Stdlib.Uchar.t -> unit
val add_utf_16le_uchar : t -> Stdlib.Uchar.t -> unit
val add_utf_16be_uchar : t -> Stdlib.Uchar.t -> unit
val add_string : t -> string -> unit
val add_bytes : t -> bytes -> unit
val add_substring : t -> string -> int -> int -> unit
val add_subbytes : t -> bytes -> int -> int -> unit
val add_substitute : t -> (string -> string) -> string -> unit
val add_buffer : t -> t -> unit
val add_channel : t -> Stdlib.in_channel -> int -> unit
val output_buffer : Stdlib.out_channel -> t -> unit
val truncate : t -> int -> unit
val to_seq : t -> char Stdlib.Seq.t
val to_seqi : t -> (int * char) Stdlib.Seq.t
val add_seq : t -> char Stdlib.Seq.t -> unit
val of_seq : char Stdlib.Seq.t -> t
val add_uint8 : t -> int -> unit
val add_int8 : t -> int -> unit
val add_uint16_ne : t -> int -> unit
val add_uint16_be : t -> int -> unit
val add_uint16_le : t -> int -> unit
val add_int16_ne : t -> int -> unit
val add_int16_be : t -> int -> unit
val add_int16_le : t -> int -> unit
val add_int32_ne : t -> int32 -> unit
val add_int32_be : t -> int32 -> unit
val add_int32_le : t -> int32 -> unit
val add_int64_ne : t -> int64 -> unit
val add_int64_be : t -> int64 -> unit
val add_int64_le : t -> int64 -> unit
include module type of Prime_buffer
val with0 : ?n:int -> (Stdlib.Buffer.t -> unit) -> string
with0 f
callsf buf
on a fresh bufferbuf
and returns its content.