The package Standard provides global memory allocator and other basic services used by other OCCT components.
More...
#include <Standard.hxx>
The package Standard provides global memory allocator and other basic services used by other OCCT components.
◆ Allocate()
Allocates memory blocks aSize - bytes to allocate.
◆ AllocateAligned()
Allocates aligned memory blocks. Should be used with CPU instructions which require specific alignment. For example: SSE requires 16 bytes, AVX requires 32 bytes.
- Parameters
-
theSize | bytes to allocate |
theAlign | alignment in bytes |
◆ Free() [1/2]
Deallocates memory blocks.
- Parameters
-
thePtr | - previously allocated memory block to be freed |
◆ Free() [2/2]
template<typename T >
static void Standard::Free |
( |
T *& |
thePtr | ) |
|
|
inlinestatic |
Template version of function Free(), nullifies the argument pointer.
- Parameters
-
thePtr | - previously allocated memory block to be freed |
◆ FreeAligned() [1/2]
Deallocates memory blocks.
- Parameters
-
◆ FreeAligned() [2/2]
template<typename T >
static void Standard::FreeAligned |
( |
T *& |
thePtrAligned | ) |
|
|
inlinestatic |
Template version of function FreeAligned(), nullifies the argument pointer.
- Parameters
-
◆ Purge()
Deallocates the storage retained on the free list and clears the list. Returns non-zero if some memory has been actually freed.
◆ Reallocate()
Reallocates memory blocks aStorage - previously allocated memory block aNewSize - new size in bytes.
The documentation for this class was generated from the following file: