Memory buffer that autosize. Advanced allocation management of the memory when size is updated. More...
Memory buffer that autosize. Advanced allocation management of the memory when size is updated.
Public Member Methods | |
MemoryBufferDynamic (Int32 expectedSize=0) | |
Constructor. More... | |
~MemoryBufferDynamic () | |
Destructor. More... | |
void | UpdateCapacity (Int32 expectedSize) |
Updates the capacity described by expectedSize. More... | |
Int32 | GetCapacity () |
Gets the capacity. More... | |
Pointer | GetMemory () |
Gets the memory. More... | |
MemoryBufferDynamic | ( | Int32 | expectedSize = 0 | ) |
Constructor.
expectedSize | (optional) initial expected size. |
~MemoryBufferDynamic | ( | ) |
Destructor.
|
inline |
Gets the capacity.
|
inline |
Gets the memory.
void UpdateCapacity | ( | Int32 | expectedSize | ) |
Updates the capacity described by expectedSize.
expectedSize | expected size. |