BeRTOS
|
Heap subsystem (public interface). More...
Go to the source code of this file.
Functions | |
void | heap_init (struct Heap *h, void *memory, size_t size) |
Initialize heap within the buffer pointed by memory which is of size bytes. | |
void * | heap_allocmem (struct Heap *h, size_t size) |
Allocate a chunk of memory of size bytes from the heap. | |
void | heap_freemem (struct Heap *h, void *mem, size_t size) |
Free a chunk of memory of size bytes from the heap. | |
size_t | heap_freeSpace (struct Heap *h) |
Returns the number of free bytes in a heap. | |
void * | heap_malloc (struct Heap *h, size_t size) |
Standard malloc interface. | |
void * | heap_calloc (struct Heap *h, size_t size) |
Standard calloc interface. | |
void | heap_free (struct Heap *h, void *mem) |
Free a block of memory, determining its size automatically. |