streambuf Questions
2
Solved
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...
Innerdirected asked 16/5, 2011 at 5:51
1
Solved
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 most of it working, I can insert (<<) into my stream...
3
Solved
What are 'aliased stream buffers`? I encountered the term in a comment on an answer of mine.
1
I've experienced problems using asio::streambuf and am hoping someone can tell me if I'm using the class incorrectly. When I run this example code it segfaults. Why?
To make things more confusing,...
Subcontract asked 11/2, 2011 at 17:14
5
Solved
I want to use this snippet from Mr-Edd's iostreams article to print std::clog somewhere.
#include <iostream>
#include <iomanip>
#include <string>
#include <sstream>
int ma...
Fluvial asked 10/2, 2009 at 16:27
3
Solved
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.
I found answer to my question but actually I need ...
Maladroit asked 4/12, 2010 at 14:9
1
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 is...
4
Solved
I have a memory block (opaque), that I want to store in a Blob in mySQL through their C++ adapter. The adapter expects a istream:
virtual void setBlob(unsigned int parameterIndex, std::istream * b...
3
Solved
For educational purposes I want to create a ostream and stream buffer to do:
fix endians when doing << myVar;
store in a deque container instead of using std:cout or writing to a file
lo...
© 2022 - 2024 — McMap. All rights reserved.