Logo Search packages:      
Sourcecode: einstein version File versions  Download package

Buffer Class Reference

#include <buffer.h>

List of all members.


Detailed Description

Dynamic growing buffer.

Definition at line 10 of file buffer.h.


Public Member Functions

 Buffer (int size=0, int allocated=1024)
 Buffer (int size=0, int allocated=1024)
size_t getAllocated ()
 Get actual bytes used by buffer.
size_t getAllocated ()
 Get actual bytes used by buffer.
void * getData ()
 Get pointer to data.
void * getData ()
 Get pointer to data.
size_t getSize ()
 Get current size of buffer.
size_t getSize ()
 Get current size of buffer.
void gotoPos (int offset)
void gotoPos (int offset)
size_t putByte (unsigned char value)
size_t putByte (unsigned char value)
size_t putData (const char *data, size_t length)
size_t putData (const unsigned char *data, size_t length)
size_t putData (const char *data, size_t length)
size_t putData (const unsigned char *data, size_t length)
size_t putInteger (int value)
size_t putInteger (int value)
size_t putUtf8 (const std::wstring &string)
size_t putUtf8 (const std::wstring &string)
void setSize (size_t size)
void setSize (size_t size)

Private Attributes

size_t allocated
int currentPos
void * data
size_t size

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

Generated by  Doxygen 1.6.0   Back to index