29 #ifndef MEMORY_POOL_DYNAMIC_PREALLOC_H 30 #define MEMORY_POOL_DYNAMIC_PREALLOC_H 32 #include "pool_allocator.h" 33 #include "core/os/memory_pool_dynamic.h" 41 virtual ID alloc(
size_t p_amount,
const char* p_description);
42 virtual void free(ID p_id);
43 virtual Error realloc(ID p_id,
size_t p_amount);
44 virtual bool is_valid(ID p_id);
45 virtual size_t get_size(ID p_id)
const;
46 virtual const char* get_description(ID p_id)
const;
48 virtual Error lock(ID p_id);
49 virtual void *
get(ID p_ID);
50 virtual Error unlock(ID p_id);
51 virtual bool is_locked(ID p_id)
const;
53 virtual size_t get_available_mem()
const;
54 virtual size_t get_total_usage()
const;
56 MemoryPoolDynamicPrealloc(
void * p_mem,
int p_size,
int p_align = 16,
int p_max_entries=PoolAllocator::DEFAULT_MAX_ALLOCS);
60 #endif // MEMORY_POOL_DYNAMIC_PREALLOC_H Definition: memory_pool_dynamic.h:35
Definition: pool_allocator.h:48
Definition: memory_pool_dynamic_prealloc.h:35