Module Email_message.Bigstring_shared

type t = private Core.Bigstring.t

Immutable sequences of bytes which can be windowed efficiently.

include sig ... end
val compare : t ‑> t ‑> int
val bin_read_t : t Bin_prot.Read.reader
val __bin_read_t__ : (int ‑> t) Bin_prot.Read.reader
val bin_reader_t : t Bin_prot.Type_class.reader
val bin_size_t : t Bin_prot.Size.sizer
val bin_write_t : t Bin_prot.Write.writer
val bin_writer_t : t Bin_prot.Type_class.writer
val bin_shape_t : Bin_prot.Shape.t
val t_of_sexp : Sexplib.Sexp.t ‑> t
val sexp_of_t : t ‑> Sexplib.Sexp.t
val of_bigstring : Core.Bigstring.t ‑> t
val to_bigstring : t ‑> Core.Bigstring.t
include Core.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
val to_lexbuf : t ‑> Lexing.lexbuf
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.Bigbuffer.t ‑> t

Gets a bigstring from a bigbuffer with minimal memory overhead.

val of_string_monoid : String_monoid.t ‑> t
val substr_index : ?pos:int ‑> t ‑> pattern:t ‑> int option