1
external length : bytes -> int = "%bytes_length"
2
external get : bytes -> int -> char = "%bytes_safe_get"
3
external set : bytes -> int -> char -> unit = "%bytes_safe_set"
4
external create : int -> bytes = "caml_create_bytes"
5
val make : int -> char -> bytes
6
val init : int -> f:(int -> char) -> bytes
8
val copy : bytes -> bytes
9
val of_string : string -> bytes
10
val to_string : bytes -> string
11
val sub : bytes -> pos:int -> len:int -> bytes
12
val sub_string : bytes -> pos:int -> len:int -> string
13
val extend : bytes -> left:int -> right:int -> bytes
14
val fill : bytes -> pos:int -> len:int -> char -> unit
16
src:bytes -> src_pos:int -> dst:bytes -> dst_pos:int -> len:int -> unit
18
src:string -> src_pos:int -> dst:bytes -> dst_pos:int -> len:int -> unit
19
val concat : sep:bytes -> bytes list -> bytes
20
val cat : bytes -> bytes -> bytes
21
val iter : f:(char -> unit) -> bytes -> unit
22
val iteri : f:(int -> char -> unit) -> bytes -> unit
23
val map : f:(char -> char) -> bytes -> bytes
24
val mapi : f:(int -> char -> char) -> bytes -> bytes
25
val trim : bytes -> bytes
26
val escaped : bytes -> bytes
27
val index : bytes -> char -> int
28
val index_opt : bytes -> char -> int option
29
val rindex : bytes -> char -> int
30
val rindex_opt : bytes -> char -> int option
31
val index_from : bytes -> int -> char -> int
32
val index_from_opt : bytes -> int -> char -> int option
33
val rindex_from : bytes -> int -> char -> int
34
val rindex_from_opt : bytes -> int -> char -> int option
35
val contains : bytes -> char -> bool
36
val contains_from : bytes -> int -> char -> bool
37
val rcontains_from : bytes -> int -> char -> bool
38
val uppercase : bytes -> bytes[@@ocaml.deprecated
39
"Use Bytes.uppercase_ascii instead."]
40
val lowercase : bytes -> bytes[@@ocaml.deprecated
41
"Use Bytes.lowercase_ascii instead."]
42
val capitalize : bytes -> bytes[@@ocaml.deprecated
43
"Use Bytes.capitalize_ascii instead."]
44
val uncapitalize : bytes -> bytes[@@ocaml.deprecated
45
"Use Bytes.uncapitalize_ascii instead."]
46
val uppercase_ascii : bytes -> bytes
47
val lowercase_ascii : bytes -> bytes
48
val capitalize_ascii : bytes -> bytes
49
val uncapitalize_ascii : bytes -> bytes
51
val compare : t -> t -> int
52
val equal : t -> t -> bool
53
val to_seq : t -> char Seq.t
54
val to_seqi : t -> (int * char) Seq.t
55
val of_seq : char Seq.t -> t
56
external unsafe_get : bytes -> int -> char = "%bytes_unsafe_get"
57
external unsafe_set : bytes -> int -> char -> unit = "%bytes_unsafe_set"
58
external unsafe_blit :
59
src:bytes -> src_pos:int -> dst:bytes -> dst_pos:int -> len:int -> unit =
60
"caml_blit_bytes"[@@noalloc ]
61
external unsafe_fill :
62
bytes -> pos:int -> len:int -> char -> unit = "caml_fill_bytes"[@@noalloc ]
63
val unsafe_to_string : bytes -> string
64
val unsafe_of_string : string -> bytes