• Home
  • Raw
  • Download

Lines Matching full:io

131 bool test_seekable_in_chars(std::iostream& io)  in test_seekable_in_chars()  argument
139 io.put(narrow_data()[j]); in test_seekable_in_chars()
140 io.seekp(-chunk_size, BOOST_IOS::cur); in test_seekable_in_chars()
142 if (io.get() != narrow_data()[j]) in test_seekable_in_chars()
144 io.seekg(-chunk_size, BOOST_IOS::cur); in test_seekable_in_chars()
146 io.put(narrow_data()[j]); in test_seekable_in_chars()
151 io.seekp(0, BOOST_IOS::beg); in test_seekable_in_chars()
155 io.put(narrow_data()[j]); in test_seekable_in_chars()
156 io.seekp(off, BOOST_IOS::beg); in test_seekable_in_chars()
158 if (io.get() != narrow_data()[j]) in test_seekable_in_chars()
160 io.seekg(off, BOOST_IOS::beg); in test_seekable_in_chars()
162 io.put(narrow_data()[j]); in test_seekable_in_chars()
166 io.seekp(0, BOOST_IOS::end); in test_seekable_in_chars()
167 off = io.tellp(); in test_seekable_in_chars()
168 io.seekp(-off, BOOST_IOS::end); in test_seekable_in_chars()
172 io.put(narrow_data()[j]); in test_seekable_in_chars()
173 io.seekp(-off, BOOST_IOS::end); in test_seekable_in_chars()
175 if (io.get() != narrow_data()[j]) in test_seekable_in_chars()
177 io.seekg(-off, BOOST_IOS::end); in test_seekable_in_chars()
179 io.put(narrow_data()[j]); in test_seekable_in_chars()
184 bool test_seekable_in_chunks(std::iostream& io) in test_seekable_in_chunks() argument
190 io.write(narrow_data(), chunk_size); in test_seekable_in_chunks()
191 io.seekp(-chunk_size, BOOST_IOS::cur); in test_seekable_in_chunks()
193 io.read(buf, chunk_size); in test_seekable_in_chunks()
196 io.seekg(-chunk_size, BOOST_IOS::cur); in test_seekable_in_chunks()
197 io.write(narrow_data(), chunk_size); in test_seekable_in_chunks()
202 io.seekp(0, BOOST_IOS::beg); in test_seekable_in_chunks()
204 io.write(narrow_data(), chunk_size); in test_seekable_in_chunks()
205 io.seekp(off, BOOST_IOS::beg); in test_seekable_in_chunks()
207 io.read(buf, chunk_size); in test_seekable_in_chunks()
210 io.seekg(off, BOOST_IOS::beg); in test_seekable_in_chunks()
211 io.write(narrow_data(), chunk_size); in test_seekable_in_chunks()
215 io.seekp(0, BOOST_IOS::end); in test_seekable_in_chunks()
216 off = io.tellp(); in test_seekable_in_chunks()
217 io.seekp(-off, BOOST_IOS::end); in test_seekable_in_chunks()
219 io.write(narrow_data(), chunk_size); in test_seekable_in_chunks()
220 io.seekp(-off, BOOST_IOS::end); in test_seekable_in_chunks()
222 io.read(buf, chunk_size); in test_seekable_in_chunks()
225 io.seekg(-off, BOOST_IOS::end); in test_seekable_in_chunks()
226 io.write(narrow_data(), chunk_size); in test_seekable_in_chunks()
231 bool test_input_seekable(std::istream& io) in test_input_seekable() argument
238 if (io.get() != narrow_data()[j]) in test_input_seekable()
240 io.seekg(-chunk_size, BOOST_IOS::cur); in test_input_seekable()
242 io.read(buf, chunk_size); in test_input_seekable()
249 io.seekg(0, BOOST_IOS::beg); in test_input_seekable()
252 if (io.get() != narrow_data()[j]) in test_input_seekable()
254 io.seekg(off, BOOST_IOS::beg); in test_input_seekable()
256 io.read(buf, chunk_size); in test_input_seekable()
262 io.seekg(0, BOOST_IOS::end); in test_input_seekable()
263 off = io.tellg(); in test_input_seekable()
264 io.seekg(-off, BOOST_IOS::end); in test_input_seekable()
267 if (io.get() != narrow_data()[j]) in test_input_seekable()
269 io.seekg(-off, BOOST_IOS::end); in test_input_seekable()
271 io.read(buf, chunk_size); in test_input_seekable()
278 bool test_output_seekable(std::ostream& io) in test_output_seekable() argument
285 io.put(narrow_data()[j]); in test_output_seekable()
286 io.seekp(-chunk_size, BOOST_IOS::cur); in test_output_seekable()
287 io.write(narrow_data(), chunk_size); in test_output_seekable()
292 io.seekp(0, BOOST_IOS::beg); in test_output_seekable()
295 io.put(narrow_data()[j]); in test_output_seekable()
296 io.seekp(off, BOOST_IOS::beg); in test_output_seekable()
297 io.write(narrow_data(), chunk_size); in test_output_seekable()
301 io.seekp(0, BOOST_IOS::end); in test_output_seekable()
302 off = io.tellp(); in test_output_seekable()
303 io.seekp(-off, BOOST_IOS::end); in test_output_seekable()
306 io.put(narrow_data()[j]); in test_output_seekable()
307 io.seekp(-off, BOOST_IOS::end); in test_output_seekable()
308 io.write(narrow_data(), chunk_size); in test_output_seekable()
313 bool test_dual_seekable(std::iostream& io) in test_dual_seekable() argument
320 io.put(narrow_data()[j]); in test_dual_seekable()
321 io.seekp(-chunk_size, BOOST_IOS::cur); in test_dual_seekable()
323 if (io.get() != narrow_data()[j]) in test_dual_seekable()
325 io.seekg(-chunk_size, BOOST_IOS::cur); in test_dual_seekable()
326 io.write(narrow_data(), chunk_size); in test_dual_seekable()
328 io.read(buf, chunk_size); in test_dual_seekable()
335 io.seekp(0, BOOST_IOS::beg); in test_dual_seekable()
336 io.seekg(0, BOOST_IOS::beg); in test_dual_seekable()
339 io.put(narrow_data()[j]); in test_dual_seekable()
340 io.seekp(off, BOOST_IOS::beg); in test_dual_seekable()
342 if (io.get() != narrow_data()[j]) in test_dual_seekable()
344 io.seekg(off, BOOST_IOS::beg); in test_dual_seekable()
345 io.write(narrow_data(), chunk_size); in test_dual_seekable()
347 io.read(buf, chunk_size); in test_dual_seekable()
353 io.seekp(0, BOOST_IOS::end); in test_dual_seekable()
354 io.seekg(0, BOOST_IOS::end); in test_dual_seekable()
355 off = io.tellp(); in test_dual_seekable()
356 io.seekp(-off, BOOST_IOS::end); in test_dual_seekable()
357 io.seekg(-off, BOOST_IOS::end); in test_dual_seekable()
360 io.put(narrow_data()[j]); in test_dual_seekable()
361 io.seekp(-off, BOOST_IOS::end); in test_dual_seekable()
363 if (io.get() != narrow_data()[j]) in test_dual_seekable()
365 io.seekg(-off, BOOST_IOS::end); in test_dual_seekable()
366 io.write(narrow_data(), chunk_size); in test_dual_seekable()
368 io.read(buf, chunk_size); in test_dual_seekable()