43 virtual tResult
Append(
const tVoid* pvData, tInt nDataSize) = 0;
123 tResult
Append(
const tVoid* pvData, tInt nDataSize);
148 tResult AdjustMemoryBlock(tInt nBytesToAppend);
The IDynamicMemoryBlock interface extends allocated memory dynamically.
virtual tResult Reset()=0
Resets the size.
virtual tResult Append(const tVoid *pvData, tInt nDataSize)=0
Append data to the allocated memory.
virtual tVoid Destroy()=0
Destroys the object and frees the allocated memory.
virtual tSize GetSize()=0
Get the amount of used memory in bytes.
~IDynamicMemoryBlock()
Prohibit class destructor.
virtual tVoid * GetPtr()=0
Get a pointer to the allocated memory.
virtual tResult SetIncrement(tInt nNewIncrement)=0
Sets the allocated memory growing size Default growing size is 256 bytes.
Dynamic memory block class.
virtual ~cDynamicMemoryBlock()
Destructor.
A_UTILS_D(cDynamicMemoryBlock)
D-Pointer implementation.
util::cMemoryBlock * m_pData
Memory block for allocation, deletion.
tUInt32 m_ui32BlockSize
Allocated memory size.
tUInt32 m_ui32UsedSize
Used memory size.
cDynamicMemoryBlock()
Default constructor.
tUInt32 m_ui32BlockIncrement
Growing size.