Up

Module Bigstring_shared = Bigstring_shared

Signature

type t = private Core.Std.Bigstring.t

Immutable sequences of bytes which can be windowed efficiently.

val compare : t -> t -> int
val __bin_read_t__ : (int -> t) Core.Std.Bin_prot.Read.reader
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
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
type t
val of_string : string -> t
val to_string : t -> string
include String_monoidable.S with type t := t
type t
val to_string_monoid : t -> String_monoid.t
include Lexable.S with type t := t
type t
val to_lexbuf : t -> Lexing.lexbuf
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