Home
last modified time | relevance | path

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

1234567

/third_party/boost/boost/log/expressions/formatters/
Dmax_size_decorator.hpp127 if (!strm.rdbuf()->storage_overflow()) in operator ()()
129 const size_type old_max_size = strm.rdbuf()->max_size(); in operator ()()
130 …const size_type start_pos = strm.rdbuf()->storage()->size(), max_size_left = strm.rdbuf()->storage… in operator ()()
131 … strm.rdbuf()->max_size(start_pos + (m_max_size <= max_size_left ? m_max_size : max_size_left)); in operator ()()
141 if (strm.rdbuf()->storage_overflow()) in operator ()()
146 strm.rdbuf()->max_size(strm.rdbuf()->max_size() - m_overflow_marker.size()); in operator ()()
149 strm.rdbuf()->max_size(strm.rdbuf()->storage()->max_size()); in operator ()()
150 strm.rdbuf()->storage_overflow(false); in operator ()()
151 strm.rdbuf()->append(m_overflow_marker.data(), m_overflow_marker.size()); in operator ()()
155 strm.rdbuf()->storage_overflow(false); in operator ()()
[all …]
Dchar_decorator.hpp302 typename string_type::size_type const start_pos = strm.rdbuf()->storage()->size(); in operator ()()
309 m_impl(*strm.rdbuf()->storage(), start_pos); in operator ()()
310 strm.rdbuf()->ensure_max_size(); in operator ()()
325 typename string_type::size_type const start_pos = strm.rdbuf()->storage()->size(); in operator ()()
332 m_impl(*strm.rdbuf()->storage(), start_pos); in operator ()()
333 strm.rdbuf()->ensure_max_size(); in operator ()()
444 m_impl(*strm.rdbuf()->storage()); in operator ()()
476 m_impl(*strm.rdbuf()->storage()); in operator ()()
/third_party/boost/boost/asio/
Dbasic_socket_iostream.hpp50 if (rdbuf()->connect(BOOST_ASIO_VARIADIC_BYVAL_ARGS(n)) == 0) \
68 if (rdbuf()->connect(BOOST_ASIO_VARIADIC_BYVAL_ARGS(n)) == 0) \
250 if (rdbuf()->connect(x...) == 0) in basic_socket_iostream()
270 if (rdbuf()->connect(x...) == 0)
280 if (rdbuf()->close() == 0) in close()
285 basic_socket_streambuf<Protocol, Clock, WaitTraits>* rdbuf() const in rdbuf() function in boost::asio::basic_socket_iostream
295 return rdbuf()->socket(); in socket()
312 return rdbuf()->error(); in error()
323 return rdbuf()->expires_at(); in expires_at()
333 return rdbuf()->expiry(); in expiry()
[all …]
/third_party/boost/libs/asio/include/boost/asio/
Dbasic_socket_iostream.hpp50 if (rdbuf()->connect(BOOST_ASIO_VARIADIC_BYVAL_ARGS(n)) == 0) \
68 if (rdbuf()->connect(BOOST_ASIO_VARIADIC_BYVAL_ARGS(n)) == 0) \
250 if (rdbuf()->connect(x...) == 0) in basic_socket_iostream()
270 if (rdbuf()->connect(x...) == 0)
280 if (rdbuf()->close() == 0) in close()
285 basic_socket_streambuf<Protocol, Clock, WaitTraits>* rdbuf() const in rdbuf() function in boost::asio::basic_socket_iostream
295 return rdbuf()->socket(); in socket()
312 return rdbuf()->error(); in error()
323 return rdbuf()->expires_at(); in expires_at()
333 return rdbuf()->expiry(); in expiry()
[all …]
/third_party/grpc/test/cpp/util/
Dgrpc_tool_test.cc530 std::streambuf* orig = std::cin.rdbuf(); in TEST_F()
532 std::cin.rdbuf(ss.rdbuf()); in TEST_F()
550 std::cin.rdbuf(ss.rdbuf()); in TEST_F()
577 std::cin.rdbuf(orig); in TEST_F()
590 std::streambuf* orig = std::cin.rdbuf(); in TEST_F()
593 std::cin.rdbuf(ss.rdbuf()); in TEST_F()
612 std::cin.rdbuf(ss.rdbuf()); in TEST_F()
640 std::cin.rdbuf(orig); in TEST_F()
653 std::streambuf* orig = std::cin.rdbuf(); in TEST_F()
655 std::cin.rdbuf(ss.rdbuf()); in TEST_F()
[all …]
/third_party/ltp/testcases/kernel/syscalls/pipe/
Dpipe01.c20 char rdbuf[128]; in verify_pipe() local
22 memset(rdbuf, 0, sizeof(rdbuf)); in verify_pipe()
32 rd_size = SAFE_READ(0, fds[0], rdbuf, sizeof(rdbuf)); in verify_pipe()
40 if ((strncmp(rdbuf, wrbuf, wr_size)) != 0) { in verify_pipe()
Dpipe12.c19 static char *rdbuf; variable
43 memset(rdbuf, 0, max_size); in verify_pipe()
77 SAFE_READ(0, fds[0], rdbuf, max_size); in verify_pipe()
89 if (rdbuf) in cleanup()
90 free(rdbuf); in cleanup()
100 rdbuf = SAFE_MALLOC(max_size); in setup()
Dpipe02.c21 static char rdbuf[SIZE]; variable
64 memset(rdbuf, 0, SIZE); in verify_pipe()
66 SAFE_READ(1, fd[0], rdbuf, SIZE); in verify_pipe()
68 if (memcmp(wrbuf, rdbuf, SIZE) != 0) { in verify_pipe()
/third_party/boost/boost/log/detail/
Ddecomposed_time.hpp222 (put_integer)(*ctx.strm.rdbuf(), ctx.value.year, 4, static_cast< char_type >('0')); in format_full_year()
227 (put_integer)(*ctx.strm.rdbuf(), ctx.value.year % 100u, 2, static_cast< char_type >('0')); in format_short_year()
232 (put_integer)(*ctx.strm.rdbuf(), ctx.value.month, 2, static_cast< char_type >('0')); in format_numeric_month()
238 (put_integer)(*ctx.strm.rdbuf(), ctx.value.day, 2, static_cast< char_type >(FillCharV)); in format_month_day()
243 …(put_integer)(*ctx.strm.rdbuf(), static_cast< decomposed_time const& >(ctx.value).week_day(), 1, s… in format_week_day()
249 (put_integer)(*ctx.strm.rdbuf(), ctx.value.hours, 2, static_cast< char_type >(FillCharV)); in format_hours()
255 …(put_integer)(*ctx.strm.rdbuf(), ctx.value.hours % 12u + 1u, 2, static_cast< char_type >(FillCharV… in format_hours_12()
260 (put_integer)(*ctx.strm.rdbuf(), ctx.value.minutes, 2, static_cast< char_type >('0')); in format_minutes()
265 (put_integer)(*ctx.strm.rdbuf(), ctx.value.seconds, 2, static_cast< char_type >('0')); in format_seconds()
270 …(put_integer)(*ctx.strm.rdbuf(), ctx.value.subseconds, decomposed_time::subseconds_digits10, stati… in format_fractional_seconds()
[all …]
/third_party/boost/boost/process/
Dpipe.hpp312 basic_pipebuf<CharT, Traits>* rdbuf() const {return &_buf;}; in rdbuf() function in boost::process::basic_ipstream
317 std::basic_istream<CharT, Traits>::rdbuf(&_buf); in basic_ipstream()
324 std::basic_istream<CharT, Traits>::rdbuf(&_buf); in basic_ipstream()
330 std::basic_istream<CharT, Traits>::rdbuf(&_buf); in basic_ipstream()
336 std::basic_istream<CharT, Traits>::rdbuf(&_buf); in basic_ipstream()
346 std::basic_istream<CharT, Traits>::rdbuf(&_buf); in operator =()
424 basic_pipebuf<CharT, Traits>* rdbuf() const {return &_buf;}; in rdbuf() function in boost::process::basic_opstream
429 std::basic_ostream<CharT, Traits>::rdbuf(&_buf); in basic_opstream()
436 std::basic_ostream<CharT, Traits>::rdbuf(&_buf); in basic_opstream()
441 std::basic_ostream<CharT, Traits>::rdbuf(&_buf); in basic_opstream()
[all …]
/third_party/boost/libs/io/test/
Dios_state_unit_test.cpp208 BOOST_TEST(NULL == s.rdbuf()); in ios_rdbuf_saver_unit_test()
212 BOOST_TEST(NULL == s.rdbuf()); in ios_rdbuf_saver_unit_test()
213 s.rdbuf(&sb); in ios_rdbuf_saver_unit_test()
214 BOOST_TEST_EQ(&sb, s.rdbuf()); in ios_rdbuf_saver_unit_test()
216 BOOST_TEST(NULL == s.rdbuf()); in ios_rdbuf_saver_unit_test()
220 BOOST_TEST_EQ(&sb1, s.rdbuf()); in ios_rdbuf_saver_unit_test()
221 s.rdbuf(&sb2); in ios_rdbuf_saver_unit_test()
222 BOOST_TEST_EQ(&sb2, s.rdbuf()); in ios_rdbuf_saver_unit_test()
224 BOOST_TEST(NULL == s.rdbuf()); in ios_rdbuf_saver_unit_test()
319 boost::io::ios_pword_saver ips(ss, index, ss.rdbuf()); in ios_pword_saver_unit_test()
[all …]
Dios_state_test.cpp62 output.rdbuf(err.rdbuf()); in saver_tests_1()
97 boost::io::ios_rdbuf_saver irs(output, err.rdbuf()); in saver_tests_2()
141 std::streambuf* out_sb = out.rdbuf(); in main()
151 BOOST_TEST(out_sb == out.rdbuf()); in main()
163 BOOST_TEST(out_sb == out.rdbuf()); in main()
/third_party/boost/boost/format/
Dalt_sstream.hpp150 stringbuf_t * rdbuf() const in rdbuf() function in boost::io::basic_oaltstringstream
153 { rdbuf()->clear_buffer(); } in clear_buffer()
157 { return rdbuf()->begin(); } in begin()
159 { return rdbuf()->size(); } in size()
161 { return rdbuf()->cur_size(); } in cur_size()
165 { return rdbuf()->str(); } in str()
167 { return rdbuf()->cur_str(); } in cur_str()
169 { rdbuf()->str(s); } in str()
/third_party/boost/tools/boost_install/test/iostreams/zlib-1.2.11/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()
/third_party/zlib/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()
/third_party/boost/libs/beast/test/extern/zlib-1.2.11/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()
/third_party/boost/libs/spirit/classic/example/intermediate/
Dregex_convert.cpp73 cout.rdbuf()->sputn(msg.data(), msg.size()); in operator ()()
84 cout.rdbuf()->sputc(letter); in copy_unmodified()
101 cout.rdbuf()->sputc('['); in operator ()()
102 cout.rdbuf()->sputn(tmp.c_str(), tmp.size()); in operator ()()
103 cout.rdbuf()->sputc(']'); in operator ()()
/third_party/boost/boost/nowide/
Dfstream.hpp106 using fstream_impl::rdbuf;
156 using fstream_impl::rdbuf;
212 using fstream_impl::rdbuf;
298 this->set_rdbuf(rdbuf()); in fstream_impl()
309 rdbuf()->swap(*other.rdbuf()); in swap()
324 if(!rdbuf()->open(file_name, mode | T_StreamType::mode_modifier())) in open()
332 if(!rdbuf()->open(file_name, mode | T_StreamType::mode_modifier())) in open()
340 return rdbuf()->is_open(); in is_open()
344 return rdbuf()->is_open(); in is_open()
348 if(!rdbuf()->close()) in close()
[all …]
/third_party/boost/libs/beast/test/extern/zlib-1.2.11/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()
/third_party/zlib/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()
/third_party/boost/tools/boost_install/test/iostreams/zlib-1.2.11/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()
/third_party/boost/libs/nowide/src/
Diostream.cpp250 std::ostream::rdbuf(d.get()); in winconsole_ostream()
253 std::ostream::rdbuf(fd == 1 ? std::cout.rdbuf() : std::cerr.rdbuf()); in winconsole_ostream()
273 std::istream::rdbuf(d.get()); in winconsole_istream()
276 std::istream::rdbuf(std::cin.rdbuf()); in winconsole_istream()
/third_party/boost/boost/log/utility/manipulators/
Dauto_newline.hpp48 string_type* str = strm.rdbuf()->storage(); in operator <<()
51 strm.rdbuf()->pubsync(); in operator <<()
53 strm.rdbuf()->push_back(static_cast< char_type >('\n')); in operator <<()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/gles_conformance_tests/
Dgles_conformance_tests.cpp72 std::streambuf *oldCoutStreamBuf = std::cout.rdbuf(); in RunConformanceTest()
74 std::cout.rdbuf(strCout.rdbuf()); in RunConformanceTest()
82 std::cout.rdbuf(oldCoutStreamBuf); in RunConformanceTest()
/third_party/skia/third_party/externals/angle2/src/tests/gles_conformance_tests/
Dgles_conformance_tests.cpp72 std::streambuf *oldCoutStreamBuf = std::cout.rdbuf(); in RunConformanceTest()
74 std::cout.rdbuf(strCout.rdbuf()); in RunConformanceTest()
82 std::cout.rdbuf(oldCoutStreamBuf); in RunConformanceTest()

1234567