Stardew Engine
Loading...
Searching...
No Matches
ObjectPool.c File Reference
#include "ObjectPool.h"
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "IntTypes.h"
#include "Log.h"
Include dependency graph for ObjectPool.c:

Functions

void * InitObjectPool (int objectSize, int poolInitialSize)
 
void * DoubleObjectPoolSize (void *pObjectPool)
 
void * GetObjectPoolIndex (void *pObjectPool, int *pOutIndex)
 returns the object pool, possibly resized. returns index of a free space in the pool through pOutIndex
 
void FreeObjectPoolIndex (void *pObjectPool, int indexToFree)
 
void * FreeObjectPool (void *pObjectPool)
 

Function Documentation

◆ DoubleObjectPoolSize()

void * DoubleObjectPoolSize ( void *  pObjectPool)

◆ FreeObjectPool()

void * FreeObjectPool ( void *  pObjectPool)

◆ FreeObjectPoolIndex()

void FreeObjectPoolIndex ( void *  pObjectPool,
int  indexToFree 
)

◆ GetObjectPoolIndex()

void * GetObjectPoolIndex ( void *  pObjectPool,
int *  pOutIndex 
)

returns the object pool, possibly resized. returns index of a free space in the pool through pOutIndex

◆ InitObjectPool()

void * InitObjectPool ( int  objectSize,
int  poolInitialSize 
)