@@ -48,7 +48,7 @@ let contents b = Bytes.sub_string b.buffer 0 b.position
4848
4949let length b = b.position
5050let is_empty b = b.position = 0
51- let clear b = b.position < - 0
51+ (* let clear b = b.position <- 0 *)
5252
5353(* let reset b =
5454 b.position <- 0; b.buffer <- b.initial_buffer;
@@ -80,17 +80,17 @@ let add_char b c =
8080 Bytes. unsafe_set b.buffer pos c;
8181 b.position < - pos + 1
8282
83- let add_substring b s offset len =
83+ (* let add_substring b s offset len =
8484 if offset < 0 || len < 0 || offset > String.length s - len
8585 then invalid_arg "Ext_buffer.add_substring/add_subbytes";
8686 let new_position = b.position + len in
8787 if new_position > b.length then resize b len;
8888 Ext_bytes.unsafe_blit_string s offset b.buffer b.position len;
89- b.position < - new_position
89+ b.position <- new_position *)
9090
9191
92- let add_subbytes b s offset len =
93- add_substring b (Bytes. unsafe_to_string s) offset len
92+ (* let add_subbytes b s offset len =
93+ add_substring b (Bytes.unsafe_to_string s) offset len *)
9494
9595let add_string b s =
9696 let len = String. length s in
@@ -122,22 +122,19 @@ let add_char_string b c s =
122122 b.position < - new_position
123123
124124
125- let add_bytes b s = add_string b (Bytes. unsafe_to_string s)
125+ (* let add_bytes b s = add_string b (Bytes.unsafe_to_string s)
126126
127127let add_buffer b bs =
128- add_subbytes b bs.buffer 0 bs.position
128+ add_subbytes b bs.buffer 0 bs.position *)
129129
130- let add_channel b ic len =
130+ (* let add_channel b ic len =
131131 if len < 0
132- #if BS then
133- #else
134132 || len > Sys.max_string_length
135- #end
136133 then (* PR#5004 *)
137134 invalid_arg "Ext_buffer.add_channel";
138135 if b.position + len > b.length then resize b len;
139136 really_input ic b.buffer b.position len;
140- b.position < - b.position + len
137+ b.position <- b.position + len *)
141138
142139let output_buffer oc b =
143140 output oc b.buffer 0 b.position
0 commit comments