#include <OutputBuffer.h>
| Public Member Functions | |
| OutputBuffer () | |
| Construct Output Buffer. Construcotr allocate first unused buffer block. Buffer block have size defined in BUFBLOCK_SIZE. | |
| virtual | ~OutputBuffer () | 
| Destruct output buffer.Before you destroy buffer and dont use getBuffer() pointer, is neccessary call erase() function. | |
| void * | getBuffer () | 
| Function return pointer to buffer. | |
| unsigned int | getBufferSize () | 
| Function return buffer size. | |
| void | erase () | 
| Erase buffer's actual content. | |
| bool | pushBack (const void *data, unsigned int size) | 
| Function add into buffer data at end. | |
| Protected Member Functions | |
| bool | resize (unsigned int new_size) | 
| Function resize buffer. | |
| Protected Attributes | |
| unsigned int | mRealSize | 
| real allocated size of mBuffer | |
| unsigned int | mDataSize | 
| size of data in mBuffer | |
| byte_t * | mBuffer | 
| pointer to buffer in memory | |
| Friends | |
| OutputBuffer & | operator<< (OutputBuffer &o, const basicHelper &data) | 
| OutputBuffer & | operator<< (OutputBuffer &o, const byte_t data) | 
| OutputBuffer & | operator<< (OutputBuffer &o, const char *data) | 
| OutputBuffer & | operator<< (OutputBuffer &o, const dbyte_t data) | 
| OutputBuffer & | operator<< (OutputBuffer &o, const number_t data) | 
| OutputBuffer & | operator<< (OutputBuffer &o, const std::string data) | 
| OutputBuffer & | operator<< (OutputBuffer &o, const OutputBuffer &i) | 
| 
 | 
| Construct Output Buffer. Construcotr allocate first unused buffer block. Buffer block have size defined in BUFBLOCK_SIZE. 
 | 
| 
 | 
| Destruct output buffer.Before you destroy buffer and dont use getBuffer() pointer, is neccessary call erase() function. 
 | 
| 
 | 
| Erase buffer's actual content. 
 | 
| 
 | 
| Function return pointer to buffer. 
 
 | 
| 
 | 
| Function return buffer size. 
 
 | 
| 
 | ||||||||||||
| Function add into buffer data at end. This function is for better usage called in overridden '<<' operators. 
 
 
 | 
| 
 | 
| Function resize buffer. This function is protected and is used by buffer when data is too big and need more space.Function reallocate biggest buffer. 
 
 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | ||||||||||||
| 
 | 
| 
 | 
| pointer to buffer in memory 
 | 
| 
 | 
| size of data in mBuffer 
 | 
| 
 | 
| real allocated size of mBuffer 
 | 
 1.4.6
 1.4.6