3
(** Alias for {!Buffer.t} *)
5
val add_uint8 : t -> int -> unit
6
(** @since 4.08.0: val add_uint8 : t -> int -> unit *)
8
val add_int8 : t -> int -> unit
9
(** @since 4.08.0: val add_int8 : t -> int -> unit *)
11
val add_uint16_ne : t -> int -> unit
12
(** @since 4.08.0: val add_uint16_ne : t -> int -> unit *)
14
val add_uint16_be : t -> int -> unit
15
(** @since 4.08.0: val add_uint16_be : t -> int -> unit *)
17
val add_uint16_le : t -> int -> unit
18
(** @since 4.08.0: val add_uint16_le : t -> int -> unit *)
20
val add_int16_ne : t -> int -> unit
21
(** @since 4.08.0: val add_int16_ne : t -> int -> unit *)
23
val add_int16_be : t -> int -> unit
24
(** @since 4.08.0: val add_int16_be : t -> int -> unit *)
26
val add_int16_le : t -> int -> unit
27
(** @since 4.08.0: val add_int16_le : t -> int -> unit *)
29
val add_int32_ne : t -> int32 -> unit
30
(** @since 4.08.0: val add_int32_ne : t -> int32 -> unit *)
32
val add_int32_be : t -> int32 -> unit
33
(** @since 4.08.0: val add_int32_be : t -> int32 -> unit *)
35
val add_int32_le : t -> int32 -> unit
36
(** @since 4.08.0: val add_int32_le : t -> int32 -> unit *)
38
val add_int64_ne : t -> int64 -> unit
39
(** @since 4.08.0: val add_int64_ne : t -> int64 -> unit *)
41
val add_int64_be : t -> int64 -> unit
42
(** @since 4.08.0: val add_int64_be : t -> int64 -> unit *)
44
val add_int64_le : t -> int64 -> unit
45
(** @since 4.08.0: val add_int64_le : t -> int64 -> unit *)
48
val to_seq : t -> char Seq.t
51
val to_seq : t -> char Stdcompat__seq.t
53
(** @since 4.07.0: val to_seq : t -> char Seq.t
57
val to_seqi : t -> (int * char) Seq.t
60
val to_seqi : t -> (int * char) Stdcompat__seq.t
62
(** @since 4.07.0: val to_seqi : t -> (int * char) Seq.t
66
val add_seq : t -> char Seq.t -> unit
69
val add_seq : t -> char Stdcompat__seq.t -> unit
71
(** @since 4.07.0: val add_seq : t -> char Seq.t -> unit
75
val of_seq : char Seq.t -> t
78
val of_seq : char Stdcompat__seq.t -> t
80
(** @since 4.07.0: val of_seq : char Seq.t -> t
84
val add_utf_8_uchar : t -> Uchar.t -> unit
87
val add_utf_8_uchar : t -> Stdcompat__uchar.t -> unit
89
(** @since 4.06.0: val add_utf_8_uchar : t -> Uchar.t -> unit
93
val add_utf_16le_uchar : t -> Uchar.t -> unit
96
val add_utf_16le_uchar : t -> Stdcompat__uchar.t -> unit
98
(** @since 4.06.0: val add_utf_16le_uchar : t -> Uchar.t -> unit
102
val add_utf_16be_uchar : t -> Uchar.t -> unit
104
@BEGIN_BEFORE_4_06_0@
105
val add_utf_16be_uchar : t -> Stdcompat__uchar.t -> unit
107
(** @since 4.06.0: val add_utf_16be_uchar : t -> Uchar.t -> unit
110
val truncate : t -> int -> unit
111
(** @since 4.05.0: val truncate : t -> int -> unit *)
114
val to_bytes : t -> bytes
116
@BEGIN_BEFORE_4_02_0@
117
val to_bytes : t -> Stdcompat__init.bytes
119
(** @since 4.02.0: val to_bytes : t -> bytes
123
val blit : t -> int -> bytes -> int -> int -> unit
125
@BEGIN_BEFORE_4_02_0@
126
val blit : t -> int -> Stdcompat__init.bytes -> int -> int -> unit
128
(** @since 4.02.0: val blit : t -> int -> bytes -> int -> int -> unit
132
val add_bytes : t -> bytes -> unit
134
@BEGIN_BEFORE_4_02_0@
135
val add_bytes : t -> Stdcompat__init.bytes -> unit
137
(** @since 4.02.0: val add_bytes : t -> bytes -> unit
141
val add_subbytes : t -> bytes -> int -> int -> unit
143
@BEGIN_BEFORE_4_02_0@
144
val add_subbytes : t -> Stdcompat__init.bytes -> int -> int -> unit
146
(** @since 4.02.0: val add_subbytes : t -> bytes -> int -> int -> unit
149
val sub : t -> int -> int -> string
150
(** @since 3.08.0: val sub : t -> int -> int -> string *)
152
val nth : t -> int -> char
153
(** @since 3.08.0: val nth : t -> int -> char *)
155
val create : int -> t
156
(** Alias for {!Buffer.create} *)
158
val contents : t -> string
159
(** Alias for {!Buffer.contents} *)
161
val length : t -> int
162
(** Alias for {!Buffer.length} *)
164
val clear : t -> unit
165
(** Alias for {!Buffer.clear} *)
167
val reset : t -> unit
168
(** Alias for {!Buffer.reset} *)
170
val add_char : t -> char -> unit
171
(** Alias for {!Buffer.add_char} *)
173
val add_string : t -> string -> unit
174
(** Alias for {!Buffer.add_string} *)
176
val add_substring : t -> string -> int -> int -> unit
177
(** Alias for {!Buffer.add_substring} *)
179
val add_substitute : t -> (string -> string) -> string -> unit
180
(** Alias for {!Buffer.add_substitute} *)
182
val add_buffer : t -> t -> unit
183
(** Alias for {!Buffer.add_buffer} *)
185
val add_channel : t -> in_channel -> int -> unit
186
(** Alias for {!Buffer.add_channel} *)
188
val output_buffer : out_channel -> t -> unit
189
(** Alias for {!Buffer.output_buffer} *)