blob: 2e6defc14204f14bc9467536756473ec9821f2a3 [file] [log] [blame] [edit]
#ifndef __STATIC_ALLOCATOR_H_INCLUDED__
#define __STATIC_ALLOCATOR_H_INCLUDED__
#include <stdint.h>
typedef struct static_pool_s {
void* backing_store;
void* flags;
int item_size;
int num_items;
} static_pool_t;
void poolInit( static_pool_t* inPool,
int inItemSize,
int inNumItems,
void* inBackingStore,
void* inFlags);
void *poolAllocateBuffer( static_pool_t* inPool );
void poolFreeBuffer( static_pool_t* inPool, void* inPointer);
#endif // __STATIC_ALLOCATOR_H_INCLUDED__