-
Notifications
You must be signed in to change notification settings - Fork 13
/
stdcompat__buffer_s.mli.in
191 lines (150 loc) · 5.03 KB
/
stdcompat__buffer_s.mli.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
module type S = sig
type t = Buffer.t
(** Alias for {!Buffer.t} *)
val add_uint8 : t -> int -> unit
(** @since 4.08.0: val add_uint8 : t -> int -> unit *)
val add_int8 : t -> int -> unit
(** @since 4.08.0: val add_int8 : t -> int -> unit *)
val add_uint16_ne : t -> int -> unit
(** @since 4.08.0: val add_uint16_ne : t -> int -> unit *)
val add_uint16_be : t -> int -> unit
(** @since 4.08.0: val add_uint16_be : t -> int -> unit *)
val add_uint16_le : t -> int -> unit
(** @since 4.08.0: val add_uint16_le : t -> int -> unit *)
val add_int16_ne : t -> int -> unit
(** @since 4.08.0: val add_int16_ne : t -> int -> unit *)
val add_int16_be : t -> int -> unit
(** @since 4.08.0: val add_int16_be : t -> int -> unit *)
val add_int16_le : t -> int -> unit
(** @since 4.08.0: val add_int16_le : t -> int -> unit *)
val add_int32_ne : t -> int32 -> unit
(** @since 4.08.0: val add_int32_ne : t -> int32 -> unit *)
val add_int32_be : t -> int32 -> unit
(** @since 4.08.0: val add_int32_be : t -> int32 -> unit *)
val add_int32_le : t -> int32 -> unit
(** @since 4.08.0: val add_int32_le : t -> int32 -> unit *)
val add_int64_ne : t -> int64 -> unit
(** @since 4.08.0: val add_int64_ne : t -> int64 -> unit *)
val add_int64_be : t -> int64 -> unit
(** @since 4.08.0: val add_int64_be : t -> int64 -> unit *)
val add_int64_le : t -> int64 -> unit
(** @since 4.08.0: val add_int64_le : t -> int64 -> unit *)
@BEGIN_FROM_4_07_0@
val to_seq : t -> char Seq.t
@END_FROM_4_07_0@
@BEGIN_BEFORE_4_07_0@
val to_seq : t -> char Stdcompat__seq.t
@END_BEFORE_4_07_0@
(** @since 4.07.0: val to_seq : t -> char Seq.t
*)
@BEGIN_FROM_4_07_0@
val to_seqi : t -> (int * char) Seq.t
@END_FROM_4_07_0@
@BEGIN_BEFORE_4_07_0@
val to_seqi : t -> (int * char) Stdcompat__seq.t
@END_BEFORE_4_07_0@
(** @since 4.07.0: val to_seqi : t -> (int * char) Seq.t
*)
@BEGIN_FROM_4_07_0@
val add_seq : t -> char Seq.t -> unit
@END_FROM_4_07_0@
@BEGIN_BEFORE_4_07_0@
val add_seq : t -> char Stdcompat__seq.t -> unit
@END_BEFORE_4_07_0@
(** @since 4.07.0: val add_seq : t -> char Seq.t -> unit
*)
@BEGIN_FROM_4_07_0@
val of_seq : char Seq.t -> t
@END_FROM_4_07_0@
@BEGIN_BEFORE_4_07_0@
val of_seq : char Stdcompat__seq.t -> t
@END_BEFORE_4_07_0@
(** @since 4.07.0: val of_seq : char Seq.t -> t
*)
@BEGIN_FROM_4_06_0@
val add_utf_8_uchar : t -> Uchar.t -> unit
@END_FROM_4_06_0@
@BEGIN_BEFORE_4_06_0@
val add_utf_8_uchar : t -> Stdcompat__uchar.t -> unit
@END_BEFORE_4_06_0@
(** @since 4.06.0: val add_utf_8_uchar : t -> Uchar.t -> unit
*)
@BEGIN_FROM_4_06_0@
val add_utf_16le_uchar : t -> Uchar.t -> unit
@END_FROM_4_06_0@
@BEGIN_BEFORE_4_06_0@
val add_utf_16le_uchar : t -> Stdcompat__uchar.t -> unit
@END_BEFORE_4_06_0@
(** @since 4.06.0: val add_utf_16le_uchar : t -> Uchar.t -> unit
*)
@BEGIN_FROM_4_06_0@
val add_utf_16be_uchar : t -> Uchar.t -> unit
@END_FROM_4_06_0@
@BEGIN_BEFORE_4_06_0@
val add_utf_16be_uchar : t -> Stdcompat__uchar.t -> unit
@END_BEFORE_4_06_0@
(** @since 4.06.0: val add_utf_16be_uchar : t -> Uchar.t -> unit
*)
val truncate : t -> int -> unit
(** @since 4.05.0: val truncate : t -> int -> unit *)
@BEGIN_FROM_4_02_0@
val to_bytes : t -> bytes
@END_FROM_4_02_0@
@BEGIN_BEFORE_4_02_0@
val to_bytes : t -> Stdcompat__init.bytes
@END_BEFORE_4_02_0@
(** @since 4.02.0: val to_bytes : t -> bytes
*)
@BEGIN_FROM_4_02_0@
val blit : t -> int -> bytes -> int -> int -> unit
@END_FROM_4_02_0@
@BEGIN_BEFORE_4_02_0@
val blit : t -> int -> Stdcompat__init.bytes -> int -> int -> unit
@END_BEFORE_4_02_0@
(** @since 4.02.0: val blit : t -> int -> bytes -> int -> int -> unit
*)
@BEGIN_FROM_4_02_0@
val add_bytes : t -> bytes -> unit
@END_FROM_4_02_0@
@BEGIN_BEFORE_4_02_0@
val add_bytes : t -> Stdcompat__init.bytes -> unit
@END_BEFORE_4_02_0@
(** @since 4.02.0: val add_bytes : t -> bytes -> unit
*)
@BEGIN_FROM_4_02_0@
val add_subbytes : t -> bytes -> int -> int -> unit
@END_FROM_4_02_0@
@BEGIN_BEFORE_4_02_0@
val add_subbytes : t -> Stdcompat__init.bytes -> int -> int -> unit
@END_BEFORE_4_02_0@
(** @since 4.02.0: val add_subbytes : t -> bytes -> int -> int -> unit
*)
val sub : t -> int -> int -> string
(** @since 3.08.0: val sub : t -> int -> int -> string *)
val nth : t -> int -> char
(** @since 3.08.0: val nth : t -> int -> char *)
val create : int -> t
(** Alias for {!Buffer.create} *)
val contents : t -> string
(** Alias for {!Buffer.contents} *)
val length : t -> int
(** Alias for {!Buffer.length} *)
val clear : t -> unit
(** Alias for {!Buffer.clear} *)
val reset : t -> unit
(** Alias for {!Buffer.reset} *)
val output_buffer : out_channel -> t -> unit
(** Alias for {!Buffer.output_buffer} *)
val add_char : t -> char -> unit
(** Alias for {!Buffer.add_char} *)
val add_string : t -> string -> unit
(** Alias for {!Buffer.add_string} *)
val add_substring : t -> string -> int -> int -> unit
(** Alias for {!Buffer.add_substring} *)
val add_substitute : t -> (string -> string) -> string -> unit
(** Alias for {!Buffer.add_substitute} *)
val add_buffer : t -> t -> unit
(** Alias for {!Buffer.add_buffer} *)
val add_channel : t -> in_channel -> int -> unit
(** Alias for {!Buffer.add_channel} *)
end