Home
last modified time | relevance | path

Searched refs:rdbuf (Results 1 – 25 of 97) sorted by relevance

1234

/external/libcxx/test/std/localization/locales/locale.convenience/conversions/conversions.buffer/
Dctor.pass.cpp34 assert(b.rdbuf() == nullptr); in main()
40 B b(s.rdbuf()); in main()
41 assert(b.rdbuf() == s.rdbuf()); in main()
47 B b(s.rdbuf(), new std::codecvt_utf8<wchar_t>); in main()
48 assert(b.rdbuf() == s.rdbuf()); in main()
54 B b(s.rdbuf(), new std::codecvt_utf8<wchar_t>, std::mbstate_t()); in main()
55 assert(b.rdbuf() == s.rdbuf()); in main()
Drdbuf.pass.cpp27 assert(b.rdbuf() == nullptr); in main()
28 b.rdbuf(s.rdbuf()); in main()
29 assert(b.rdbuf() == s.rdbuf()); in main()
Doverflow.pass.cpp45 test_buf f(bs.rdbuf()); in main()
56 test_buf f(bs.rdbuf()); in main()
62 test_buf f(bs.rdbuf()); in main()
74 test_buf f(bs.rdbuf()); in main()
80 test_buf f(bs.rdbuf()); in main()
/external/ltp/testcases/kernel/syscalls/pipe/
Dpipe01.c32 char rdbuf[128]; in verify_pipe() local
34 memset(rdbuf, 0, sizeof(rdbuf)); in verify_pipe()
44 rd_size = SAFE_READ(0, fds[0], rdbuf, sizeof(rdbuf)); in verify_pipe()
52 if ((strncmp(rdbuf, wrbuf, wr_size)) != 0) { in verify_pipe()
Dpipe02.c33 static char rdbuf[SIZE]; variable
76 memset(rdbuf, 0, SIZE); in verify_pipe()
78 SAFE_READ(1, fd[0], rdbuf, SIZE); in verify_pipe()
80 if (memcmp(wrbuf, rdbuf, SIZE) != 0) { in verify_pipe()
/external/u-boot/env/
Deeprom.c89 uchar rdbuf[64], flags[2]; in env_eeprom_load() local
111 int n = (len > sizeof(rdbuf)) ? sizeof(rdbuf) : len; in env_eeprom_load()
114 rdbuf, n); in env_eeprom_load()
116 crc_tmp = crc32(crc_tmp, rdbuf, n); in env_eeprom_load()
148 uchar rdbuf[64]; in env_eeprom_load() local
161 int n = (len > sizeof(rdbuf)) ? sizeof(rdbuf) : len; in env_eeprom_load()
164 CONFIG_ENV_OFFSET + off, rdbuf, n); in env_eeprom_load()
165 new = crc32(new, rdbuf, n); in env_eeprom_load()
/external/libcxx/test/std/input.output/iostreams.base/ios/basic.ios.members/
Drdbuf_streambuf.pass.cpp23 assert(ios.rdbuf() == 0); in main()
26 std::streambuf* sb2 = ios.rdbuf(sb); in main()
28 assert(ios.rdbuf() == sb); in main()
30 sb2 = ios.rdbuf(0); in main()
32 assert(ios.rdbuf() == 0); in main()
/external/grpc-grpc/test/cpp/util/
Dgrpc_tool_test.cc441 std::streambuf* orig = std::cin.rdbuf(); in TEST_F()
443 std::cin.rdbuf(ss.rdbuf()); in TEST_F()
456 std::cin.rdbuf(orig); in TEST_F()
469 std::streambuf* orig = std::cin.rdbuf(); in TEST_F()
471 std::cin.rdbuf(ss.rdbuf()); in TEST_F()
482 std::cin.rdbuf(orig); in TEST_F()
496 std::streambuf* orig = std::cin.rdbuf(); in TEST_F()
498 std::cin.rdbuf(ss.rdbuf()); in TEST_F()
507 std::cin.rdbuf(orig); in TEST_F()
521 std::streambuf* orig = std::cin.rdbuf(); in TEST_F()
[all …]
/external/zlib/src/contrib/iostream/
Dzfstream.cpp255 ios( gzfilestream_common::rdbuf() ) in gzfilestream_common()
286 gzfilebuf *gzfilestream_common::rdbuf() in rdbuf() function in gzfilestream_common
292 ios( gzfilestream_common::rdbuf() ) in gzifstream()
298 ios( gzfilestream_common::rdbuf() ) in gzifstream()
304 ios( gzfilestream_common::rdbuf() ) in gzifstream()
312 ios( gzfilestream_common::rdbuf() ) in gzofstream()
318 ios( gzfilestream_common::rdbuf() ) in gzofstream()
324 ios( gzfilestream_common::rdbuf() ) in gzofstream()
/external/libcxx/test/std/input.output/string.streams/stringstream.cons/
Ddefault.pass.cpp24 assert(ss.rdbuf() != 0); in main()
30 assert(ss.rdbuf() != 0); in main()
36 assert(ss.rdbuf() != 0); in main()
42 assert(ss.rdbuf() != 0); in main()
/external/libcxx/test/std/input.output/string.streams/istringstream/istringstream.cons/
Ddefault.pass.cpp24 assert(ss.rdbuf() != 0); in main()
30 assert(ss.rdbuf() != 0); in main()
36 assert(ss.rdbuf() != 0); in main()
42 assert(ss.rdbuf() != 0); in main()
Dstring.pass.cpp25 assert(ss.rdbuf() != 0); in main()
36 assert(ss.rdbuf() != 0); in main()
47 assert(ss.rdbuf() != 0); in main()
58 assert(ss.rdbuf() != 0); in main()
/external/libcxx/test/std/input.output/string.streams/ostringstream/ostringstream.cons/
Ddefault.pass.cpp24 assert(ss.rdbuf() != 0); in main()
30 assert(ss.rdbuf() != 0); in main()
36 assert(ss.rdbuf() != 0); in main()
42 assert(ss.rdbuf() != 0); in main()
Dstring.pass.cpp25 assert(ss.rdbuf() != 0); in main()
34 assert(ss.rdbuf() != 0); in main()
43 assert(ss.rdbuf() != 0); in main()
52 assert(ss.rdbuf() != 0); in main()
/external/zlib/src/contrib/iostream3/
Dtest.cc28 std::cout << buf << "\t(" << inf.rdbuf()->in_avail() << " chars left in buffer)\n"; in main()
32 outf.rdbuf()->pubsetbuf(0,0); in main()
41 inf.rdbuf()->pubsetbuf(0,0); in main()
44 std::cout << buf << "\t(" << inf.rdbuf()->in_avail() << " chars left in buffer)\n"; in main()
/external/libcxx/test/std/iterators/stream.iterators/istreambuf.iterator/istreambuf.iterator.cons/
Dstreambuf.pass.cpp28 std::istreambuf_iterator<char> i(inf.rdbuf()); in main()
33 std::istreambuf_iterator<char> i(inf.rdbuf()); in main()
42 std::istreambuf_iterator<wchar_t> i(inf.rdbuf()); in main()
47 std::istreambuf_iterator<wchar_t> i(inf.rdbuf()); in main()
/external/libcxx/test/std/input.output/iostream.format/output.streams/ostream.cons/
Dmove.pass.cpp48 assert(os1.rdbuf() == &sb); in main()
49 assert(os.rdbuf() == 0); in main()
62 assert(os1.rdbuf() == &sb); in main()
63 assert(os.rdbuf() == 0); in main()
/external/libcxx/test/std/input.output/iostream.format/input.streams/iostreamclass/iostream.cons/
Dmove.pass.cpp48 assert(is1.rdbuf() == &sb); in main()
51 assert(is.rdbuf() == 0); in main()
66 assert(is1.rdbuf() == &sb); in main()
67 assert(is.rdbuf() == 0); in main()
/external/libcxx/test/std/input.output/iostream.format/input.streams/istream/istream.cons/
Dmove.pass.cpp46 assert(is1.rdbuf() == &sb); in main()
49 assert(is.rdbuf() == 0); in main()
64 assert(is1.rdbuf() == &sb); in main()
65 assert(is.rdbuf() == 0); in main()
/external/clang/test/CXX/class.derived/class.member.lookup/
Dp6.cpp36 struct BaseIO { BaseIO* rdbuf() { return 0; } }; in rdbuf() function
37 struct Pcommon : virtual BaseIO { int rdbuf() { return 0; } }; in rdbuf() function
40 void f() { P p; p.rdbuf(); } in f()
/external/libcxx/include/
Distream537 typename _Traits::int_type __i = __is.rdbuf()->sgetc();
547 __is.rdbuf()->sbumpc();
636 typename _Traits::int_type __i = __is.rdbuf()->sbumpc();
689 typename traits_type::int_type __i = this->rdbuf()->sgetc();
700 this->rdbuf()->sbumpc();
740 __r = this->rdbuf()->sbumpc();
773 int_type __i = this->rdbuf()->sgetc();
784 this->rdbuf()->sbumpc();
827 typename traits_type::int_type __i = this->rdbuf()->sgetc();
839 this->rdbuf()->sbumpc();
[all …]
/external/libcxx/test/std/input.output/iostream.format/input.streams/iostreamclass/iostream.assign/
Dmove_assign.pass.cpp50 assert(is1.rdbuf() == &sb1); in main()
58 assert(is2.rdbuf() == &sb2); in main()
73 assert(is1.rdbuf() == &sb1); in main()
81 assert(is2.rdbuf() == &sb2); in main()
/external/libcxx/test/std/input.output/iostream.format/output.streams/ostream.assign/
Dmember_swap.pass.cpp45 assert(os1.rdbuf() == &sb1); in main()
53 assert(os2.rdbuf() == &sb2); in main()
68 assert(os1.rdbuf() == &sb1); in main()
76 assert(os2.rdbuf() == &sb2); in main()
Dmove_assign.pass.cpp50 assert(os1.rdbuf() == &sb1); in main()
58 assert(os2.rdbuf() == &sb2); in main()
73 assert(os1.rdbuf() == &sb1); in main()
81 assert(os2.rdbuf() == &sb2); in main()
/external/libcxx/test/std/input.output/iostream.format/input.streams/istream/istream.assign/
Dmember_swap.pass.cpp45 assert(is1.rdbuf() == &sb1); in main()
53 assert(is2.rdbuf() == &sb2); in main()
68 assert(is1.rdbuf() == &sb1); in main()
76 assert(is2.rdbuf() == &sb2); in main()

1234