An input streambuf that reads from memory. More...
#include <rutz/cstrstream.h>
Public Member Functions | |
imembuf (const char *s) | |
Create using the given char array as the input buffer. | |
imembuf (const char *s, unsigned int len) | |
Create using the given char array and length as the input buffer. | |
void | make_owning () |
virtual | ~imembuf () |
Destructor. | |
virtual int | underflow () |
Underflow operation. |
An input streambuf that reads from memory.
Definition at line 49 of file cstrstream.h.
rutz::imembuf::imembuf | ( | const char * | s | ) |
Create using the given char array as the input buffer.
Definition at line 39 of file cstrstream.cc.
rutz::imembuf::imembuf | ( | const char * | s, | |
unsigned int | len | |||
) |
Create using the given char array and length as the input buffer.
Definition at line 49 of file cstrstream.cc.
rutz::imembuf::~imembuf | ( | ) | [virtual] |
Destructor.
Definition at line 70 of file cstrstream.cc.
int rutz::imembuf::underflow | ( | ) | [virtual] |
Underflow operation.
Since there's no "external data source", if we've come to the end of our current buffer, then we're just plain out of data.
Definition at line 75 of file cstrstream.cc.