streambuf
C++ Decorate basic_stream::underflow()
I want to extend the behavior of a basic_streambuf object by using the decorator pattern. That`s what I currently got:[详细]
2023-03-15 08:49 分类:问答std::istreambuf_iterator "peek" with std::ifstream
When dealing with streams of data, I prefer to write the code in terms of templates and iterators. Often I need to \"peek\" at the next character. In order to make the code be able to deal no-bidirect[详细]
2023-03-12 16:12 分类:问答std::fstream with multiple buffers?
You can specify one buffer for your file stream like that: char buf[BUFFER_SIZE]; std::ofstream file(\"file\", std::ios_base::binary | std::ios_base::out);[详细]
2023-03-11 08:35 分类:问答Is it possible to "prepare" input from cin?
In his answer, specifically in the linked Ideone example, @Nawaz shows how you can change the buffer object of cout to write to something else. This made me think of utilizing that to prepare input fr[详细]
2023-03-05 22:57 分类:问答inheriting ostream and streambuf problem with xsputn and overflow
I have been doing research on creating my own ostream and along with that a streambuf to handle the buffer for my ostream.I actually have开发者_Python百科 most of it working, I can insert (<<) i[详细]
2023-02-25 16:19 分类:问答compile problem C++
Hey guys. I need to compile some project. I installed Visual C++ 6.0 + Microsoft Platform SDK 2003 from there[详细]
2023-02-08 03:21 分类:问答ZeroCopyOutputStream into a streambuf
I would like to write a class that inherites from streambuf and adapts a ZeroCopyOutputStream (开发者_如何学Cgoogle/protobuf/io/) into a streambuf.[详细]
2023-01-31 12:34 分类:问答How can I read from memory just like from a file using wistream?
In my previous question I asked how to read from a memory just as from a file. Because my whole file was in memory I wanted to read it similarly.[详细]
2023-01-28 03:27 分类:问答Reading integers from a memory mapped formatted file
I have memory mapped a large formatted (text) file containing one integer per line like so: 123 345 34324[详细]
2023-01-25 04:23 分类:问答boost.asio - set maximum read stream size
There\'s example HTTP Client at http://www.boost.org/doc/libs/1_39_0/doc/html/boost_asio/example/http/client/async_client.cpp[详细]
2023-01-23 05:21 分类:问答