MAK Data Logger API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
MAKLogger::DtSmartBuffer Class Reference

A smart buffer has a shared pointer to the memory buffer and an offset and size of a 'smart' sub buffer. More...

+ Collaboration diagram for MAKLogger::DtSmartBuffer:

Public Member Functions

 DtSmartBuffer (const DtMemoryBufferSP &parentBuffer)
 Creates a smart sub buffer, that is maps directly to a single DtSmartBuffer. More...
 
 DtSmartBuffer (const DtMemoryBufferSP &parentBuffer, size_t offset, size_t size)
 CTOR which uses shared parent buffer. More...
 
 ~DtSmartBuffer ()
 DTOR More...
 
DtMemoryBufferSP buffer () const
 Get the memory buffer the smart buffer uses. More...
 
void setBuffer (const DtMemoryBufferSP &buffer)
 Set the memory buffer the smart buffer uses. More...
 
void * data ()
 Get the data in the smart buffer. More...
 
const void * data () const
 Get the const data in the smart buffer. More...
 
size_t size () const
 Get the size of the smart buffer. More...
 
void resize (size_t)
 Set the size of the smart buffer. More...
 
size_t availableSize () const
 Get the available size left in the memory buffer. More...
 
size_t currentOffset () const
 Get the current offset from the base memory. More...
 
void increaseOffset (int offsetInBytes)
 Increase the offset in the memory buffer. More...
 
void setOffset (int offsetInBytes)
 Set the offset from the beginning of the m