#include <DynamicBuffer.hpp>
Collaboration diagram for H::DynamicBuffer< DataType >:
Public Member Functions | |
void | addToBuffer (const DataType *AddBuf, size_t BufLen) |
Add data to the buffer. | |
void | clear () |
Clear the buffer. | |
const DataType * | getBuffer () const |
Get the buffer. | |
size_t | length () const |
Get the buffer length. | |
DynamicBuffer () | |
DynamicBuffer Default Constructor. | |
virtual | ~DynamicBuffer () |
DynamicBuffer Destructor. |
Nothing in STL can currently be used as a buffer efficiently This uses realloc, and memcpy to be as fast as possible
void H::DynamicBuffer< DataType >::addToBuffer | ( | const DataType * | AddBuf, | |
size_t | BufLen | |||
) |
Add data to the buffer.
AddBuf | Pointer to the data to be added | |
BufLen | Length of data to be added |
const DataType * H::DynamicBuffer< DataType >::getBuffer | ( | ) | const |
Get the buffer.
size_t H::DynamicBuffer< DataType >::length | ( | ) | const |
Get the buffer length.