Kohi Game Engine
pool_allocator.h File Reference
#include "defines.h"

Go to the source code of this file.

Data Structures

struct  pool_allocator_free_node
 
struct  pool_allocator
 

Typedefs

typedef struct pool_allocator_free_node pool_allocator_free_node
 
typedef struct pool_allocator pool_allocator
 

Functions

KAPI pool_allocator pool_allocator_create (u64 element_size, u64 capacity)
 
KAPI void pool_allocator_destroy (pool_allocator *allocator)
 
KAPI void * pool_allocator_allocate (pool_allocator *allocator, u32 *out_index)
 
KAPI void pool_allocator_free (pool_allocator *allocator, void *block)
 
KAPI u32 pool_allocator_elements_free (const pool_allocator *allocator)
 
KAPI u64 pool_allocator_space_free (const pool_allocator *allocator)
 

Typedef Documentation

◆ pool_allocator

◆ pool_allocator_free_node

Function Documentation

◆ pool_allocator_allocate()

KAPI void* pool_allocator_allocate ( pool_allocator allocator,
u32 out_index 
)

◆ pool_allocator_create()

KAPI pool_allocator pool_allocator_create ( u64  element_size,
u64  capacity 
)

◆ pool_allocator_destroy()

KAPI void pool_allocator_destroy ( pool_allocator allocator)

◆ pool_allocator_elements_free()

KAPI u32 pool_allocator_elements_free ( const pool_allocator allocator)

◆ pool_allocator_free()

KAPI void pool_allocator_free ( pool_allocator allocator,
void *  block 
)

◆ pool_allocator_space_free()

KAPI u64 pool_allocator_space_free ( const pool_allocator allocator)