26 #ifndef HYPERTABLE_FIXED_STREAM_H
27 #define HYPERTABLE_FIXED_STREAM_H
64 setg((
char *)buf, (
char *)next, (
char *)end);
89 char *
output() {
return StreamBuf::pbase(); }
116 std::istream(static_cast<StreamBuf *>(this)) {
120 char *
input() {
return StreamBuf::eback(); }
133 #endif // HYPERTABLE_FIXED_STREAM_H
A simple streambuf with fixed size buffer.
FixedStreamBuf(const char *buf, const char *next, const char *end)
Constructor.
std::string String
A String is simply a typedef to std::string.
FixedOstream(char *buf, size_t len)
Constructs the stream from an existing buffer; all streamed objects are stored in that buffer...
char * output()
Returns a pointer to the output buffer.
Output stream using a fixed buffer.
char * output_ptr()
Returns a pointer to the current position in the output buffer.
String str()
Returns a String object from the output buffer.
String str()
Returns a String object from the output buffer.
char * input()
Returns a pointer to the beginning of the input buffer.
FixedIstream(const char *buf, const char *end)
Constructs the input stream from an existing buffer; all streamed objects are read from that buffer...
char * input_ptr()
Returns a pointer to the current position in the input buffer.
Input stream using a fixed buffer.
A String class based on std::string.
char * output_end()
Returns a pointer to the end of the output buffer.
FixedStreamBuf(char *buf, size_t len)
Constructor.
char * input_end()
Returns a pointer to the end of the input buffer.