Defines | |
| #define | MEM_HEAP_CREATE(name, n, alloc_size) |
| Create a memory heap. | |
Enumerations | |
| enum | mb_size_t { MEM_MB_4_BYTE = (1 << 2), MEM_MB_8_BYTE = (1 << 3), MEM_MB_16_BYTE = (1 << 4), MEM_MB_32_BYTE = (1 << 5), MEM_MB_64_BYTE = (1 << 6), MEM_MB_128_BYTE = (1 << 7), MEM_MB_256_BYTE = (1 << 8), MEM_MB_512_BYTE = (1 << 9), MEM_MB_1024_BYTE = (1 << 10), MEM_MB_2048_BYTE = (1 << 11), MEM_MB_4096_BYTE = (1 << 12), MEM_MB_8192_BYTE = (1 << 13) } |
Functions | |
| void * | MEM_Alloc (HANDLE *ph, uint16 size) |
| Allocate memory. | |
| void | MEM_Free (HANDLE *ph, void *pmem) |
| Free memory. | |
| STATUS | MEM_IsHeapOwner (HANDLE *ph, void *pmem) |
| Test parent of memory block. | |
|
|
Create a memory heap.
This macro creates and initilises a memory heap. The parameter alloc size should be of type
|
|
|
||||||||||||
|
Allocate memory. Allocate the required memory from the specified memory heap. The allocation is rounded to the memory block size.
|
|
||||||||||||
|
Free memory. Free the previously allocated memory by returning it to the specified memory pool.
|
|
||||||||||||
|
Test parent of memory block. Test if the pointed memory belongs to a given memory heap.
|
1.4.3