Open CASCADE Technology
7.0.0
|
The package Standard provides global memory allocator and other basic services used by other OCCT components. More...
#include <Standard.hxx>
Static Public Member Functions | |
static Standard_Address | Allocate (const Standard_Size aSize) |
Allocates memory blocks aSize - bytes to allocate. More... | |
static void | Free (const Standard_Address thePtr) |
Deallocates memory blocks. More... | |
template<typename T > | |
static void | Free (T *&thePtr) |
Template version of function Free(), nullifies the argument pointer. More... | |
static Standard_Address | Reallocate (const Standard_Address aStorage, const Standard_Size aNewSize) |
Reallocates memory blocks aStorage - previously allocated memory block aNewSize - new size in bytes. More... | |
static Standard_Address | AllocateAligned (const Standard_Size theSize, const Standard_Size theAlign) |
Allocates aligned memory blocks. Should be used with CPU instructions which require specific alignment. For example: SSE requires 16 bytes, AVX requires 32 bytes. More... | |
static void | FreeAligned (const Standard_Address thePtrAligned) |
Deallocates memory blocks. More... | |
template<typename T > | |
static void | FreeAligned (T *&thePtrAligned) |
Template version of function FreeAligned(), nullifies the argument pointer. More... | |
static Standard_Integer | Purge () |
Deallocates the storage retained on the free list and clears the list. Returns non-zero if some memory has been actually freed. More... | |
The package Standard provides global memory allocator and other basic services used by other OCCT components.
|
static |
Allocates memory blocks aSize - bytes to allocate.
|
static |
Allocates aligned memory blocks. Should be used with CPU instructions which require specific alignment. For example: SSE requires 16 bytes, AVX requires 32 bytes.
theSize | bytes to allocate |
theAlign | alignment in bytes |
|
static |
Deallocates memory blocks.
thePtr | - previously allocated memory block to be freed |
|
inlinestatic |
Template version of function Free(), nullifies the argument pointer.
thePtr | - previously allocated memory block to be freed |
|
static |
Deallocates memory blocks.
thePtrAligned | the memory block previously allocated with AllocateAligned() |
|
inlinestatic |
Template version of function FreeAligned(), nullifies the argument pointer.
thePtrAligned | the memory block previously allocated with AllocateAligned() |
|
static |
Deallocates the storage retained on the free list and clears the list. Returns non-zero if some memory has been actually freed.
|
static |
Reallocates memory blocks aStorage - previously allocated memory block aNewSize - new size in bytes.