0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Types | Public Member Functions | List of all members
Hypertable::FixedOstream Class Reference

Output stream using a fixed buffer. More...

#include <FixedStream.h>

Inheritance diagram for Hypertable::FixedOstream:
Inheritance graph
[legend]
Collaboration diagram for Hypertable::FixedOstream:
Collaboration graph
[legend]

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...
 

Detailed Description

Output stream using a fixed buffer.

Definition at line 74 of file FixedStream.h.

Member Typedef Documentation

Definition at line 76 of file FixedStream.h.

Constructor & Destructor Documentation

Hypertable::FixedOstream::FixedOstream ( char *  buf,
size_t  len 
)
inline

Constructs the stream from an existing buffer; all streamed objects are stored in that buffer.

Parameters
bufPointer to the memory buffer
lenSize of that buffer, in bytes

Definition at line 84 of file FixedStream.h.

Member Function Documentation

char* Hypertable::FixedOstream::output ( )
inline

Returns a pointer to the output buffer.

Definition at line 89 of file FixedStream.h.

char* Hypertable::FixedOstream::output_end ( )
inline

Returns a pointer to the end of the output buffer.

Definition at line 95 of file FixedStream.h.

char* Hypertable::FixedOstream::output_ptr ( )
inline

Returns a pointer to the current position in the output buffer.

Definition at line 92 of file FixedStream.h.

String Hypertable::FixedOstream::str ( )
inline

Returns a String object from the output buffer.

Definition at line 98 of file FixedStream.h.


The documentation for this class was generated from the following file: