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 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 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 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 : bytes -> int -> int
val get_int8 : bytes -> int -> int
val get_uint16_ne : bytes -> int -> int
val get_uint16_be : bytes -> int -> int
val get_uint16_le : bytes -> int -> int
val get_int16_ne : bytes -> int -> int
val get_int16_be : bytes -> int -> int
val get_int16_le : bytes -> int -> int
val get_int32_ne : bytes -> int -> int32
val get_int32_be : bytes -> int -> int32
val get_int32_le : bytes -> int -> int32
val get_int64_ne : bytes -> int -> int64
val get_int64_be : bytes -> int -> int64
val get_int64_le : bytes -> int -> int64
val set_uint8 : bytes -> int -> int -> unit
val set_int8 : 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 set_int16_ne : bytes -> int -> int -> unit
val set_int16_be : bytes -> int -> int -> unit
val set_int16_le : bytes -> int -> int -> unit
val set_int32_ne : bytes -> int -> int32 -> unit
val set_int32_be : bytes -> int -> int32 -> unit
val set_int32_le : bytes -> int -> int32 -> unit
val set_int64_ne : bytes -> int -> int64 -> unit
val set_int64_be : bytes -> int -> int64 -> unit
val set_int64_le : bytes -> 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 -> bytes -> int -> int -> unit
= "caml_blit_string" [@@noalloc]
end