Output stream using a fixed buffer. More...
#include <FixedStream.h>
Public Types | |
typedef FixedStreamBuf | StreamBuf |
Public Member Functions | |
FixedOstream (char *buf, size_t len) | |
Constructs the stream from an existing buffer; all streamed objects are stored in that buffer. More... | |
char * | output () |
Returns a pointer to the output buffer. More... | |
char * | output_ptr () |
Returns a pointer to the current position in the output buffer. More... | |
char * | output_end () |
Returns a pointer to the end of the output buffer. More... | |
String | str () |
Returns a String object from the output buffer. More... | |
Additional Inherited Members | |
Private Member Functions inherited from Hypertable::FixedStreamBuf | |
FixedStreamBuf (char *buf, size_t len) | |
Constructor. More... | |
FixedStreamBuf (const char *buf, const char *next, const char *end) | |
Constructor. More... | |
String | str () |
Returns a String object from the output buffer. More... | |
Output stream using a fixed buffer.
Definition at line 74 of file FixedStream.h.
Definition at line 76 of file FixedStream.h.
|
inline |
Constructs the stream from an existing buffer; all streamed objects are stored in that buffer.
buf | Pointer to the memory buffer |
len | Size of that buffer, in bytes |
Definition at line 84 of file FixedStream.h.
|
inline |
Returns a pointer to the output buffer.
Definition at line 89 of file FixedStream.h.
|
inline |
Returns a pointer to the end of the output buffer.
Definition at line 95 of file FixedStream.h.
|
inline |
Returns a pointer to the current position in the output buffer.
Definition at line 92 of file FixedStream.h.
|
inline |
Returns a String object from the output buffer.
Definition at line 98 of file FixedStream.h.