Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
MAKLogger::DtMemoryBuffer Class Reference

DtMemoryBuffer manages a memory allocation. More...

+ Collaboration diagram for MAKLogger::DtMemoryBuffer:

List of all members.

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.
DtMemoryBufferoperator= (const DtMemoryBuffer &)
 Not Implemented.

Detailed Description

DtMemoryBuffer manages a memory allocation.


Member Function Documentation

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.


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

Document ID: Generated on Tue Oct 11 19:41:03 EDT 2011 from SVN revision 107422
Copyright © 2005-2011 VT MÄK Inc. All Rights Reserved (www.mak.com)