Lines Matching refs:rdbuf

47   CPPUNIT_TEST(rdbuf);
77 void rdbuf();
281 CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(6) );
289 CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(9) );
321 CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(expected_pos) );
339 CPPUNIT_CHECK( o.rdbuf()->pubseekoff( 0, ios_base::cur, ios_base::out ) == ofstream::pos_type(10) );
387 int chars_read = (int)s.rdbuf()->sgetn( b1, sizeof(b1) );
390 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( 0, ios_base::cur ) == fstream::pos_type(chars_read) );
391 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff( -chars_read, ios_base::cur ) == fstream::pos_type(0) );
395 CPPUNIT_ASSERT( s.rdbuf()->sgetn( b2, 10 ) == 10 );
413 int chars_read = (int)s.rdbuf()->sgetn( b1, sizeof(b1) );
417 fstream::pos_type pos = s.rdbuf()->pubseekoff(0, ios_base::cur);
421 offset = s.rdbuf()->pubseekoff( -offset, ios_base::cur );
426 CPPUNIT_ASSERT( s.rdbuf()->sgetn( b2, 5 ) == 5 );
429 pos = s.rdbuf()->pubseekoff(0, ios_base::cur);
431 CPPUNIT_ASSERT( s.rdbuf()->pubseekoff(-5, ios_base::cur) == fstream::pos_type(0) );
466 int chars_read = (int)s.rdbuf()->sgetn( b1, sizeof(b1) / sizeof(wchar_t) );
470 fstream::pos_type pos = s.rdbuf()->pubseekoff(0, ios_base::cur);
474 off = s.rdbuf()->pubseekoff(-off, ios_base::cur);
476 off = s.rdbuf()->pubseekoff(0, ios_base::beg);
481 CPPUNIT_ASSERT( s.rdbuf()->sgetn( b2, 5 ) == 5 );
484 pos = s.rdbuf()->pubseekoff(0, ios_base::cur);
486 //CPPUNIT_ASSERT( s.rdbuf()->pubseekoff(-5, ios_base::cur) == fstream::pos_type(0) );
491 void FstreamTest::rdbuf()
499 ss.get( *os.rdbuf(), '\n' );
527 out << in.rdbuf();
532 out << in.rdbuf();
537 ostr << in.rdbuf();
553 out << in.rdbuf();
560 out << in.rdbuf();
565 ostr << in.rdbuf();
882 // const streambuf *b = f.rdbuf();