package bytestring

  1. Overview
  2. Docs

Module BytestringSource

Sourcetype t

an immutable efficient binary string

Sourcetype view = {
  1. offset : int;
  2. length : int;
  3. data : string;
}

A valid sub-range with an associated string.

When used inside representations, it should always be a, non-empty, and a strict sub-range of the associated string.

Sourceval empty : t
Sourceval is_empty : t -> bool
Sourceval length : t -> int
Sourceval pp : Format.formatter -> t -> unit
Sourceexception No_match
Sourceexception Guard_mismatch
Sourceexception Malformed of string
Sourceval of_string : string -> t
Sourceval to_string : t -> string
Sourceval to_iovec : t -> Rio.Iovec.t
Sourceexception View_out_of_bounds
Sourceval join : t -> t -> t
Sourceval (^) : t -> t -> t
Sourceval concat : t -> t list -> t
Sourceval sub : ?off:int -> len:int -> t -> t
Sourcemodule Iter : sig ... end
Sourceval to_iter : t -> Iter.t
Sourcemodule Transient : sig ... end
Sourceval to_transient : t -> Transient.t
Sourceval with_bytes : ?capacity:int -> (bytes -> (int, 'error) result) -> (t, 'error) result
OCaml

Innovation. Community. Security.