27 #ifndef EMBB_BASE_C_MEMORY_ALLOCATION_H_ 28 #define EMBB_BASE_C_MEMORY_ALLOCATION_H_ 42 #include <embb/base/c/internal/config.h> 197 #endif // __cplusplus 199 #endif // EMBB_BASE_C_MEMORY_ALLOCATION_H_ void embb_free(void *ptr)
Frees memory that has been allocated by embb_alloc() for some pointer ptr.
size_t embb_get_bytes_allocated()
Returns the total number of bytes currently allocated.
void * embb_alloc_aligned(size_t alignment, size_t size)
Allocates size bytes of memory with alignment alignment.
void * embb_alloc_cache_aligned(size_t size)
Allocates size bytes of cache-aligned memory.
void embb_free_aligned(void *ptr)
Frees memory that has been allocated by an aligned method for ptr.
void * embb_alloc(size_t size)
Allocates size bytes of memory.