DtMemoryBuffer manages a memory allocation. More...
Collaboration diagram for MAKLogger::DtMemoryBuffer:Public Member Functions | |
| void * | data () |
| get a pointer to the memory | |
| size_t | size () const |
| get the size in bytes of the buffer | |
| void | resize (size_t newDesiredSize) |
| Resize the buffer (without loss of data) After the resize the buffer is guaranteed to be ATLEAST the newSize. | |
Static Public Member Functions | |
| static DtMemoryBufferSP | createMemoryBuffer (size_t size) |
Protected Member Functions | |
| DtMemoryBuffer (size_t size) | |
Protected Attributes | |
| char * | myData |
| size_t | mySize |
Private Member Functions | |
| DtMemoryBuffer (const DtMemoryBuffer &) | |
| Not Implemented. | |
| DtMemoryBuffer & | operator= (const DtMemoryBuffer &) |
| Not Implemented. | |
DtMemoryBuffer manages a memory allocation.
| void MAKLogger::DtMemoryBuffer::resize | ( | size_t | newDesiredSize | ) |
Resize the buffer (without loss of data) After the resize the buffer is guaranteed to be ATLEAST the newSize.