![]() |
ndn-lite
|
#include <stdint.h>
#include <stddef.h>
Go to the source code of this file.
Macros | |
#define | NDN_MEMORY_POOL_RESERVE_SIZE(block_size, block_count) (sizeof(void*) * ((block_count) + 1) + (block_size) * (block_count)) |
The required memory to initialize a memory pool. More... | |
Functions | |
void | ndn_memory_pool_init (void *pool, size_t block_size, size_t block_count) |
Initialize a memory array pool for block_count elements in the size of block_size . More... | |
uint8_t * | ndn_memory_pool_alloc (void *pool) |
Allocate a new block in size block_size . More... | |
int | ndn_memory_pool_free (void *pool, void *ptr) |
Free allocated memory block. More... | |