API Guides > ConceptRT 3.x
MemoryBufferDynamic Class Reference

Memory buffer that autosize. Advanced allocation management of the memory when size is updated. More...

Detailed Description

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...
 

Constructor & Destructor Documentation

MemoryBufferDynamic ( Int32  expectedSize = 0)

Constructor.

Parameters
expectedSize(optional) initial expected size.
Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.
RT Exceptions:
RT_ERROR_MEMORY_ALLOCATION_FAILD

Destructor.

Methods Documentation

Int32 GetCapacity ( )
inline

Gets the capacity.

Returns
The capacity.
Pointer GetMemory ( )
inline

Gets the memory.

Returns
The memory.
void UpdateCapacity ( Int32  expectedSize)

Updates the capacity described by expectedSize.

Parameters
expectedSizeexpected size.
Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.
RT Exceptions:
RT_ERROR_MEMORY_ALLOCATION_FAILD