Up

module Bigstring_shared

: sig
#
type t = private Core.Std.Bigstring.t

Immutable sequences of bytes which can be windowed efficiently.

#
val of_bigstring : Core.Std.Bigstring.t -> t
#
val to_bigstring : t -> Core.Std.Bigstring.t
include Core.Std.Stringable.S with type t := t
include String_monoidable.S with type t := t
include Lexable.S with type t := t
#
val hash : t -> int
#
val empty : t

Empty, immutable Bigstring

#
val length : t -> int
#
val sub : ?pos:int -> ?len:int -> t -> t
#
val foldi : t -> init:'b -> f:(int -> 'b -> char -> 'b) -> 'b
#
val split_lines : t -> t list
#
val of_bigbuffer_volatile : Core.Std.Bigbuffer.t -> t

Gets a bigstring from a bigbuffer with minimal memory overhead.

#
val of_string_monoid : String_monoid.t -> t
#
val compare : t -> t -> int
#
val bin_t : t Core.Std.Bin_prot.Type_class.t
#
val bin_read_t : t Core.Std.Bin_prot.Read.reader
#
val __bin_read_t__ : (int -> t) Core.Std.Bin_prot.Read.reader
#
val bin_reader_t : t Core.Std.Bin_prot.Type_class.reader
#
val bin_size_t : t Core.Std.Bin_prot.Size.sizer
#
val bin_write_t : t Core.Std.Bin_prot.Write.writer
#
val bin_writer_t : t Core.Std.Bin_prot.Type_class.writer
#
val t_of_sexp : Sexplib.Sexp.t -> t
#
val sexp_of_t : t -> Sexplib.Sexp.t
end