lean cpp library
A lean C++ library providing efficient utility classes for high-performance C++ applications.
|
Character stream class that allows for allocation-free usage of STL streaming facilities. More...
#include <charstream.h>
Public Types | |
typedef holder_base_type::stream_buffer | stream_buffer |
Stream buffer type. | |
Public Member Functions | |
basic_charstream (char_type *begin, char_type *end) | |
Constructs a character stream from the given character range. | |
basic_charstream (char_type *begin) | |
Constructs an unlimited character stream from the given character buffer pointer. | |
basic_charstream & | reset () |
Resets the character stream. | |
stream_buffer * | rdbuf () const |
Returns the address of the stored stream buffer object. | |
char_type * | begin () const |
Gets the beginning of the underlying buffer. | |
char_type * | end () const |
Gets the end of the underlying buffer. | |
char_type * | write_end () const |
Gets the current write position in the underlying buffer. | |
char_type * | read_end () const |
Gets the current read position in the underlying buffer. |
Character stream class that allows for allocation-free usage of STL streaming facilities.