streambuf
boost::asio::async_read and boost::asio::streambuf
I am using async_read with streambuf. However, I would like to limi开发者_运维知识库t the amount of data read to 4, so I can properly handle header before going to body.[详细]
2023-01-17 07:53 分类:问答Is it safe to manipulated streambuf after doing boost::asio::async_read?
I know it\'s not safe to manipulated streambuf while async_write working as stated by asio author on boost mailing list. What I want to know开发者_开发问答 is, is it safe to manipulated streambuf afte[详细]
2023-01-13 19:35 分类:问答How do I implement seekg() for a custom istream/streambuf?
I used to be a C++ expert a decade ago, but for the past 10 years I\'ve been programming Java. I just started a C++ project that uses a small third-party XML parser. The XML parser accepts an STL istr[详细]
2023-01-12 03:39 分类:问答Deriving from streambuf without rewriting a corresponding stream
Some days ago, I decided that it would be fun to write a streambuf subclass that would use mmap and read-ahead.[详细]
2023-01-02 08:03 分类:问答std::ostream interface to an OLE IStream
I have a Visual Studio 2008 C++ application using IStreams. I would like to use the IStream connection in a std::ostream. Something like this:[详细]
2022-12-31 20:10 分类:问答copying from a std::istreambuf_iterator<> to a std::vector<>
I have a Visual Studio 2008 C++ application where I would like to treat a stream as a set of iterators.[详细]
2022-12-31 16:57 分类:问答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 with a header that is one byte long, and will specify what type of the message has been[详细]
2022-12-29 16:28 分类:问答How do I build a filtered_streambuf based on basic_streambuf?
I have a project that requires me to insert a filter into a stream so that outgoing data will be modified according to the filter. After some research, it seems that what I want to do is create a filt[详细]
2022-12-27 19:14 分类:问答C++: Best text accumulator
Text gets accumulates piecemeal before being sent to client. Now we use own class that allocates memory for each piece as char massive. (Anyway, works like char[][] + std::list<char*>).[详细]
2022-12-22 04:18 分类:问答Threadsafe logging
I want to implement a simple class for logging from multiple threads. The idea there is, that each object that wants to log stuff, receives an ostream-object that it can write messages to using the us[详细]
2022-12-13 11:12 分类:问答