78 #ifndef picox_allocator_xfixed_allocator_h_ 79 #define picox_allocator_xfixed_allocator_h_ 100 size_t remain_blocks;
105 #define XFALLOC_MIN_ALIGNMENT (X_ALIGN_OF(size_t)) 162 return self->block_size;
172 return self->num_blocks;
182 return self->remain_blocks;
191 #endif // picox_allocator_xfixed_allocator_h_ void * xfalloc_allocate(XFixedAllocator *self)
Definition: xfixed_allocator.c:89
uint8_t * heap
privatesection
Definition: xfixed_allocator.h:95
Definition: xfixed_allocator.h:92
void xfalloc_clear(XFixedAllocator *self)
Definition: xfixed_allocator.c:80
static void * xfalloc_heap(const XFixedAllocator *self)
Definition: xfixed_allocator.h:149
static size_t xfalloc_block_size(const XFixedAllocator *self)
Definition: xfixed_allocator.h:159
static size_t xfalloc_num_blocks(const XFixedAllocator *self)
Definition: xfixed_allocator.h:169
static size_t xfalloc_remain_blocks(const XFixedAllocator *self)
Definition: xfixed_allocator.h:179
void xfalloc_deallocate(XFixedAllocator *self, void *ptr)
Definition: xfixed_allocator.c:106
void xfalloc_init(XFixedAllocator *self, void *heap, size_t heap_size, size_t block_size)
Definition: xfixed_allocator.c:46