package melange

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Bytes end
val length : bytes -> int
val string_length : string -> int
val get : bytes -> int -> char
val set : bytes -> int -> char -> unit
val create : int -> bytes
val unsafe_get : bytes -> int -> char
val unsafe_set : bytes -> int -> char -> unit
val unsafe_fill : bytes -> int -> int -> char -> unit
val unsafe_to_string : bytes -> string
val unsafe_of_string : string -> bytes
val unsafe_blit : bytes -> int -> bytes -> int -> int -> unit
val unsafe_blit_string : string -> int -> bytes -> int -> int -> unit
val make : int -> char -> bytes
val init : int -> (int -> char) -> bytes
val empty : bytes
val copy : bytes -> bytes
val to_string : bytes -> string
val of_string : string -> bytes
val sub : bytes -> int -> int -> bytes
val sub_string : bytes -> int -> int -> string
val (++) : int -> int -> int
val extend : bytes -> int -> int -> bytes
val fill : bytes -> int -> int -> char -> unit
val blit : bytes -> int -> bytes -> int -> int -> unit
val blit_string : string -> int -> bytes -> int -> int -> unit
val iter : (char -> unit) -> bytes -> unit
val iteri : (int -> char -> unit) -> bytes -> unit
val ensure_ge : int -> int -> int
val sum_lengths : int -> int -> bytes list -> int
val unsafe_blits : bytes -> int -> bytes -> int -> bytes list -> bytes
val concat : bytes -> bytes list -> bytes
val cat : bytes -> bytes -> bytes
val char_code : char -> int
val char_chr : int -> char
val is_space : char -> bool
val trim : bytes -> bytes
val unsafe_escape : bytes -> bytes
val escaped : bytes -> bytes
val map : (char -> char) -> bytes -> bytes
val mapi : (int -> char -> char) -> bytes -> bytes
val fold_left : ('a -> char -> 'a) -> 'a -> bytes -> 'a
val fold_right : (char -> 'a -> 'a) -> bytes -> 'a -> 'a
val exists : (char -> bool) -> bytes -> bool
val for_all : (char -> bool) -> bytes -> bool
val uppercase_ascii : bytes -> bytes
val lowercase_ascii : bytes -> bytes
val apply1 : (char -> char) -> bytes -> bytes
val capitalize_ascii : bytes -> bytes
val uncapitalize_ascii : bytes -> bytes
val starts_with : prefix:bytes -> bytes -> bool
val ends_with : suffix:bytes -> bytes -> bool
val index_rec : bytes -> int -> int -> char -> int
val index : bytes -> char -> int
val index_rec_opt : bytes -> int -> int -> char -> int option
val index_opt : bytes -> char -> int option
val index_from : bytes -> int -> char -> int
val index_from_opt : bytes -> int -> char -> int option
val rindex_rec : bytes -> int -> char -> int
val rindex : bytes -> char -> int
val rindex_from : bytes -> int -> char -> int
val rindex_rec_opt : bytes -> int -> char -> int option
val rindex_opt : bytes -> char -> int option
val rindex_from_opt : bytes -> int -> char -> int option
val contains_from : bytes -> int -> char -> bool
val contains : bytes -> char -> bool
val rcontains_from : bytes -> int -> char -> bool
type t = bytes
val compare : t -> t -> int
val equal : t -> t -> bool
val split_on_char : char -> bytes -> bytes list

Iterators

val to_seq : bytes -> char Seq.t
val to_seqi : bytes -> (int * char) Seq.t
val of_seq : char Seq.t -> bytes
Binary encoding/decoding of integers
val unsafe_get_uint8 : bytes -> int -> int
val unsafe_get_uint16_ne : bytes -> int -> int
val get_uint8 : bytes -> int -> int
val get_uint16_ne : bytes -> int -> int
val get_int32_ne : bytes -> int -> int32
val get_int64_ne : bytes -> int -> int64
val unsafe_set_uint8 : bytes -> int -> int -> unit
val unsafe_set_uint16_ne : bytes -> int -> int -> unit
val set_int8 : bytes -> int -> int -> unit
val set_int16_ne : bytes -> int -> int -> unit
val set_int32_ne : bytes -> int -> int32 -> unit
val set_int64_ne : bytes -> int -> int64 -> unit
val swap16 : int -> int
val swap32 : int32 -> int32
val swap64 : int64 -> int64
val unsafe_get_uint16_le : bytes -> int -> int
val unsafe_get_uint16_be : bytes -> int -> int
val get_int8 : bytes -> int -> int
val get_uint16_le : bytes -> int -> int
val get_uint16_be : bytes -> int -> int
val get_int16_ne : bytes -> int -> int
val get_int16_le : bytes -> int -> int
val get_int16_be : bytes -> int -> int
val get_int32_le : bytes -> int -> int32
val get_int32_be : bytes -> int -> int32
val get_int64_le : bytes -> int -> int64
val get_int64_be : bytes -> int -> int64
val unsafe_set_uint16_le : bytes -> int -> int -> unit
val unsafe_set_uint16_be : bytes -> int -> int -> unit
val set_int16_le : bytes -> int -> int -> unit
val set_int16_be : bytes -> int -> int -> unit
val set_int32_le : bytes -> int -> int32 -> unit
val set_int32_be : bytes -> int -> int32 -> unit
val set_int64_le : bytes -> int -> int64 -> unit
val set_int64_be : bytes -> int -> int64 -> unit
val set_uint8 : bytes -> int -> int -> unit
val set_uint16_ne : bytes -> int -> int -> unit
val set_uint16_be : bytes -> int -> int -> unit
val set_uint16_le : bytes -> int -> int -> unit
val dec_invalid : int -> Uchar.utf_decode
val dec_ret : int -> int -> Uchar.utf_decode
val not_in_x80_to_xBF : int -> bool
val not_in_xA0_to_xBF : int -> bool
val not_in_x80_to_x9F : int -> bool
val not_in_x90_to_xBF : int -> bool
val not_in_x80_to_x8F : int -> bool
val utf_8_uchar_2 : int -> int -> int
val utf_8_uchar_3 : int -> int -> int -> int
val utf_8_uchar_4 : int -> int -> int -> int -> int
val get_utf_8_uchar : bytes -> int -> Uchar.utf_decode
val set_utf_8_uchar : bytes -> int -> Uchar.t -> int
val is_valid_utf_8 : bytes -> bool
val get_utf_16be_uchar : bytes -> int -> Uchar.utf_decode
val set_utf_16be_uchar : bytes -> int -> Uchar.t -> int
val is_valid_utf_16be : bytes -> bool
val get_utf_16le_uchar : bytes -> int -> Uchar.utf_decode
val set_utf_16le_uchar : bytes -> int -> Uchar.t -> int
val is_valid_utf_16le : bytes -> bool
OCaml

Innovation. Community. Security.