@@ -48,7 +48,7 @@ let contents b = Bytes.sub_string b.buffer 0 b.position
48
48
49
49
let length b = b.position
50
50
let is_empty b = b.position = 0
51
- let clear b = b.position < - 0
51
+ (* let clear b = b.position <- 0 *)
52
52
53
53
(* let reset b =
54
54
b.position <- 0; b.buffer <- b.initial_buffer;
@@ -80,17 +80,17 @@ let add_char b c =
80
80
Bytes. unsafe_set b.buffer pos c;
81
81
b.position < - pos + 1
82
82
83
- let add_substring b s offset len =
83
+ (* let add_substring b s offset len =
84
84
if offset < 0 || len < 0 || offset > String.length s - len
85
85
then invalid_arg "Ext_buffer.add_substring/add_subbytes";
86
86
let new_position = b.position + len in
87
87
if new_position > b.length then resize b len;
88
88
Ext_bytes.unsafe_blit_string s offset b.buffer b.position len;
89
- b.position < - new_position
89
+ b.position <- new_position *)
90
90
91
91
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 *)
94
94
95
95
let add_string b s =
96
96
let len = String. length s in
@@ -122,22 +122,19 @@ let add_char_string b c s =
122
122
b.position < - new_position
123
123
124
124
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)
126
126
127
127
let add_buffer b bs =
128
- add_subbytes b bs.buffer 0 bs.position
128
+ add_subbytes b bs.buffer 0 bs.position *)
129
129
130
- let add_channel b ic len =
130
+ (* let add_channel b ic len =
131
131
if len < 0
132
- #if BS then
133
- #else
134
132
|| len > Sys.max_string_length
135
- #end
136
133
then (* PR#5004 *)
137
134
invalid_arg "Ext_buffer.add_channel";
138
135
if b.position + len > b.length then resize b len;
139
136
really_input ic b.buffer b.position len;
140
- b.position < - b.position + len
137
+ b.position <- b.position + len *)
141
138
142
139
let output_buffer oc b =
143
140
output oc b.buffer 0 b.position
0 commit comments