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 -> (int -> char) -> bytes
8
val copy : bytes -> bytes
9
val of_string : string -> bytes
10
val to_string : bytes -> string
11
val sub : bytes -> int -> int -> bytes
12
val sub_string : bytes -> int -> int -> string
13
val extend : bytes -> int -> int -> bytes
14
val fill : bytes -> int -> int -> char -> unit
15
val blit : bytes -> int -> bytes -> int -> int -> unit
16
val blit_string : string -> int -> bytes -> int -> int -> unit
17
val concat : bytes -> bytes list -> bytes
18
val cat : bytes -> bytes -> bytes
19
val iter : (char -> unit) -> bytes -> unit
20
val iteri : (int -> char -> unit) -> bytes -> unit
21
val map : (char -> char) -> bytes -> bytes
22
val mapi : (int -> char -> char) -> bytes -> bytes
23
val trim : bytes -> bytes
24
val escaped : bytes -> bytes
25
val index : bytes -> char -> int
26
val index_opt : bytes -> char -> int option
27
val rindex : bytes -> char -> int
28
val rindex_opt : bytes -> char -> int option
29
val index_from : bytes -> int -> char -> int
30
val index_from_opt : bytes -> int -> char -> int option
31
val rindex_from : bytes -> int -> char -> int
32
val rindex_from_opt : bytes -> int -> char -> int option
33
val contains : bytes -> char -> bool
34
val contains_from : bytes -> int -> char -> bool
35
val rcontains_from : bytes -> int -> char -> bool
36
val uppercase : bytes -> bytes
37
val lowercase : bytes -> bytes
38
val capitalize : bytes -> bytes
39
val uncapitalize : bytes -> bytes
40
val uppercase_ascii : bytes -> bytes
41
val lowercase_ascii : bytes -> bytes
42
val capitalize_ascii : bytes -> bytes
43
val uncapitalize_ascii : bytes -> bytes
45
val compare : t -> t -> int
46
val equal : t -> t -> bool
47
val unsafe_to_string : bytes -> string
48
val unsafe_of_string : string -> bytes
49
val to_seq : t -> char Seq.t
50
val to_seqi : t -> (int * char) Seq.t
51
val of_seq : char Seq.t -> t
52
val get_uint8 : bytes -> int -> int
53
val get_int8 : bytes -> int -> int
54
val get_uint16_ne : bytes -> int -> int
55
val get_uint16_be : bytes -> int -> int
56
val get_uint16_le : bytes -> int -> int
57
val get_int16_ne : bytes -> int -> int
58
val get_int16_be : bytes -> int -> int
59
val get_int16_le : bytes -> int -> int
60
val get_int32_ne : bytes -> int -> int32
61
val get_int32_be : bytes -> int -> int32
62
val get_int32_le : bytes -> int -> int32
63
val get_int64_ne : bytes -> int -> int64
64
val get_int64_be : bytes -> int -> int64
65
val get_int64_le : bytes -> int -> int64
66
val set_uint8 : bytes -> int -> int -> unit
67
val set_int8 : bytes -> int -> int -> unit
68
val set_uint16_ne : bytes -> int -> int -> unit
69
val set_uint16_be : bytes -> int -> int -> unit
70
val set_uint16_le : bytes -> int -> int -> unit
71
val set_int16_ne : bytes -> int -> int -> unit
72
val set_int16_be : bytes -> int -> int -> unit
73
val set_int16_le : bytes -> int -> int -> unit
74
val set_int32_ne : bytes -> int -> int32 -> unit
75
val set_int32_be : bytes -> int -> int32 -> unit
76
val set_int32_le : bytes -> int -> int32 -> unit
77
val set_int64_ne : bytes -> int -> int64 -> unit
78
val set_int64_be : bytes -> int -> int64 -> unit
79
val set_int64_le : bytes -> int -> int64 -> unit
80
external unsafe_get : bytes -> int -> char = "%bytes_unsafe_get"
81
external unsafe_set : bytes -> int -> char -> unit = "%bytes_unsafe_set"
82
external unsafe_blit :
83
bytes -> int -> bytes -> int -> int -> unit = "caml_blit_bytes"[@@noalloc ]
84
external unsafe_fill :
85
bytes -> int -> int -> char -> unit = "caml_fill_bytes"[@@noalloc ]