Method | Description | |
---|---|---|
Alloc ( int size ) : |
Allocate unmanaged memory. The method allocates requested amount of memory and returns pointer to it. It may avoid allocation in the case some caching scheme is uses and there is already enough allocated memory available. |
|
Free ( |
Free unmanaged memory. This method may skip actual deallocation of memory and keep it for future Alloc requests, if some caching scheme is used. |
|
FreeUnusedMemory ( ) : int |
Force freeing unused memory. Frees and removes from cache memory blocks, which are not used by users. |
public static Alloc ( int size ) : |
||
size | int | Memory size to allocate. |
return |
public static Free ( |
||
pointer | Pointer to memory buffer to free. | |
return | void |