76 #ifndef picox_allocator_xstack_allocator_h_ 77 #define picox_allocator_xstack_allocator_h_ 149 return self->growth_upward;
159 self->growth_upward = growth_upward;
169 return self->end -
self->begin;
179 return self->capacity;
189 return self->alignment;
195 static inline uint8_t*
205 static inline uint8_t*
215 static inline uint8_t*
228 #endif // picox_allocator_xsalloc_h_ static size_t xsalloc_reserve(const XStackAllocator *self)
Definition: xstack_allocator.h:166
static size_t xsalloc_capacity(const XStackAllocator *self)
Definition: xstack_allocator.h:176
static uint8_t * xsalloc_heap(const XStackAllocator *self)
Definition: xstack_allocator.h:196
Definition: xstack_allocator.h:90
static void xsalloc_set_growth_direction(XStackAllocator *self, bool growth_upward)
Definition: xstack_allocator.h:156
static uint8_t * xsalloc_end(const XStackAllocator *self)
Definition: xstack_allocator.h:216
static size_t xsalloc_alignment(const XStackAllocator *self)
Definition: xstack_allocator.h:186
void xsalloc_init(XStackAllocator *self, void *heap, size_t size, size_t alignment)
Definition: xstack_allocator.c:60
static uint8_t * xsalloc_bedin(const XStackAllocator *self)
Definition: xstack_allocator.h:206
uint8_t * heap
privatesection
Definition: xstack_allocator.h:93
void * xsalloc_allocate(XStackAllocator *self, size_t size)
Definition: xstack_allocator.c:88
void xsalloc_rewind(XStackAllocator *self, void *begin, void *end)
Definition: xstack_allocator.c:123
static bool xsalloc_growth_direction(XStackAllocator *self)
Definition: xstack_allocator.h:146
void xsalloc_clear(XStackAllocator *self)
Definition: xstack_allocator.c:114