Top "Streambuf" questions

std::streambuf is the stream buffer type used by C++ iostreams.

Copy a streambuf's contents to a string

Apparently boost::asio::async_read doesn't like strings, as the only overload of boost::asio::buffer allows me to create …

c++ string boost boost-asio streambuf
Reading from serial port with Boost Asio

I'm want to check for incoming data packages on the serial port, using boost.asio. Each data packet will start …

c++ serial-port boost-asio streambuf
How do I create my own ostream/streambuf?

For educational purposes I want to create a ostream and stream buffer to do: fix endians when doing << …

c++ ostream streambuf
boost::asio read n bytes from socket to streambuf

I have a serialized structure, which is being sent via socket. I need to read it in chunks, since one …

c++ boost boost-asio boost-serialization streambuf
Working with boost::asio::streambuf

Looking for a boost::asio (and with himself boost) decided to write asynchronous server. To store incoming data I use …

c++ boost-asio streambuf
initializing a C++ std::istringstream from an in memory buffer?

I have a memory block (opaque), that I want to store in a Blob in mySQL through their C++ adapter. …

c++ streambuf
Use streambuf as buffer for boost asio read and write

I'm using this code for reading socket_.async_read_some(boost::asio::buffer(data_, max_length), boost::bind(&session::…

c++ boost buffer boost-asio streambuf
redirect std::cout to a custom writer

I want to use this snippet from Mr-Edd's iostreams article to print std::clog somewhere. #include <iostream> #include &…

c++ stream stringstream iostream streambuf