sig
type t = bytes
external length : BatBytes.t -> int = "%bytes_length"
external get : BatBytes.t -> int -> char = "%bytes_safe_get"
external set : BatBytes.t -> int -> char -> unit = "%bytes_safe_set"
external create : int -> BatBytes.t = "caml_create_bytes"
val make : int -> char -> BatBytes.t
val init : int -> (int -> char) -> BatBytes.t
val empty : BatBytes.t
val copy : BatBytes.t -> BatBytes.t
val of_string : string -> BatBytes.t
val to_string : BatBytes.t -> string
val sub : BatBytes.t -> int -> int -> BatBytes.t
val sub_string : BatBytes.t -> int -> int -> string
val extend : BatBytes.t -> int -> int -> BatBytes.t
val fill : BatBytes.t -> int -> int -> char -> unit
val blit : BatBytes.t -> int -> BatBytes.t -> int -> int -> unit
val blit_string : string -> int -> BatBytes.t -> int -> int -> unit
val concat : BatBytes.t -> BatBytes.t list -> BatBytes.t
val cat : BatBytes.t -> BatBytes.t -> BatBytes.t
val iter : (char -> unit) -> BatBytes.t -> unit
val iteri : (int -> char -> unit) -> BatBytes.t -> unit
val map : (char -> char) -> BatBytes.t -> BatBytes.t
val mapi : (int -> char -> char) -> BatBytes.t -> BatBytes.t
val fold_left : ('a -> char -> 'a) -> 'a -> BatBytes.t -> 'a
val fold_right : (char -> 'a -> 'a) -> BatBytes.t -> 'a -> 'a
val for_all : (char -> bool) -> BatBytes.t -> bool
val exists : (char -> bool) -> BatBytes.t -> bool
val trim : BatBytes.t -> BatBytes.t
val escaped : BatBytes.t -> BatBytes.t
val index : BatBytes.t -> char -> int
val index_opt : BatBytes.t -> char -> int option
val rindex : BatBytes.t -> char -> int
val rindex_opt : BatBytes.t -> char -> int option
val index_from : BatBytes.t -> int -> char -> int
val index_from_opt : BatBytes.t -> int -> char -> int option
val rindex_from : BatBytes.t -> int -> char -> int
val rindex_from_opt : BatBytes.t -> int -> char -> int option
val starts_with : prefix:BatBytes.t -> BatBytes.t -> bool
val ends_with : suffix:BatBytes.t -> BatBytes.t -> bool
val contains : BatBytes.t -> char -> bool
val contains_from : BatBytes.t -> int -> char -> bool
val rcontains_from : BatBytes.t -> int -> char -> bool
val uppercase : BatBytes.t -> BatBytes.t
val lowercase : BatBytes.t -> BatBytes.t
val capitalize : BatBytes.t -> BatBytes.t
val uncapitalize : BatBytes.t -> BatBytes.t
val uppercase_ascii : BatBytes.t -> BatBytes.t
val lowercase_ascii : BatBytes.t -> BatBytes.t
val capitalize_ascii : BatBytes.t -> BatBytes.t
val uncapitalize_ascii : BatBytes.t -> BatBytes.t
val compare : BatBytes.t -> BatBytes.t -> int
val equal : BatBytes.t -> BatBytes.t -> bool
val split_on_char : char -> BatBytes.t -> BatBytes.t list
val unsafe_to_string : BatBytes.t -> string
val unsafe_of_string : string -> BatBytes.t
val to_seq : BatBytes.t -> char Stdlib.Seq.t
val to_seqi : BatBytes.t -> (int * char) Stdlib.Seq.t
val of_seq : char Stdlib.Seq.t -> BatBytes.t
val get_uint8 : BatBytes.t -> int -> int
val get_int8 : BatBytes.t -> int -> int
val get_uint16_ne : BatBytes.t -> int -> int
val get_uint16_be : BatBytes.t -> int -> int
val get_uint16_le : BatBytes.t -> int -> int
val get_int16_ne : BatBytes.t -> int -> int
val get_int16_be : BatBytes.t -> int -> int
val get_int16_le : BatBytes.t -> int -> int
val get_int32_ne : BatBytes.t -> int -> int32
val get_int32_be : BatBytes.t -> int -> int32
val get_int32_le : BatBytes.t -> int -> int32
val get_int64_ne : BatBytes.t -> int -> int64
val get_int64_be : BatBytes.t -> int -> int64
val get_int64_le : BatBytes.t -> int -> int64
val set_uint8 : BatBytes.t -> int -> int -> unit
val set_int8 : BatBytes.t -> int -> int -> unit
val set_uint16_ne : BatBytes.t -> int -> int -> unit
val set_uint16_be : BatBytes.t -> int -> int -> unit
val set_uint16_le : BatBytes.t -> int -> int -> unit
val set_int16_ne : BatBytes.t -> int -> int -> unit
val set_int16_be : BatBytes.t -> int -> int -> unit
val set_int16_le : BatBytes.t -> int -> int -> unit
val set_int32_ne : BatBytes.t -> int -> int32 -> unit
val set_int32_be : BatBytes.t -> int -> int32 -> unit
val set_int32_le : BatBytes.t -> int -> int32 -> unit
val set_int64_ne : BatBytes.t -> int -> int64 -> unit
val set_int64_be : BatBytes.t -> int -> int64 -> unit
val set_int64_le : BatBytes.t -> int -> int64 -> unit
external unsafe_get : BatBytes.t -> int -> char = "%bytes_unsafe_get"
external unsafe_set : BatBytes.t -> int -> char -> unit
= "%bytes_unsafe_set"
external unsafe_blit :
BatBytes.t -> int -> BatBytes.t -> int -> int -> unit = "caml_blit_bytes"
[@@noalloc]
external unsafe_fill : BatBytes.t -> int -> int -> char -> unit
= "caml_fill_bytes" [@@noalloc]
external unsafe_blit_string :
string -> int -> BatBytes.t -> int -> int -> unit = "caml_blit_string"
[@@noalloc]
end