#include <stddef.h>
#include <stdint.h>
Go to the source code of this file.
◆ HEAP_BLOCK_HAS_NEXT
| #define HEAP_BLOCK_HAS_NEXT 0b10000000 |
◆ HEAP_BLOCK_IS_FIRST
| #define HEAP_BLOCK_IS_FIRST 0b01000000 |
◆ HEAP_BLOCK_SIZE
| #define HEAP_BLOCK_SIZE 4096 |
◆ HEAP_BLOCK_TABLE_ENTRY_FREE
| #define HEAP_BLOCK_TABLE_ENTRY_FREE 0x00 |
◆ HEAP_BLOCK_TABLE_ENTRY_TAKEN
| #define HEAP_BLOCK_TABLE_ENTRY_TAKEN 0x01 |
◆ HEAP_TABLE_ADDRESS
| #define HEAP_TABLE_ADDRESS 0x00007e00 |
◆ HEAP_BLOCK_TABLE_ENTRY
◆ heap_create()
| int heap_create |
( |
heap * | heap, |
|
|
heap_table * | table, |
|
|
void * | ptr, |
|
|
void * | end ) |
◆ heap_free()
| void heap_free |
( |
heap * | heap, |
|
|
void * | ptr ) |
Frees specified pointer in heap.
- Parameters
-
| heap | Heap to manage |
| ptr | Pointer to free |
◆ heap_malloc()
| void * heap_malloc |
( |
heap * | heap, |
|
|
size_t | size ) |