File ObjectPool.c
FileList > core > ObjectPool.c
Go to the source code of this file
#include "ObjectPool.h"#include <stdbool.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include <assert.h>#include "IntTypes.h"#include "Log.h"
Public Functions
| Type | Name |
|---|---|
| void * | DoubleObjectPoolSize (void * pObjectPool) |
| void * | FreeObjectPool (void * pObjectPool) |
| void | FreeObjectPoolIndex (void * pObjectPool, int indexToFree) |
| void * | GetObjectPoolIndex (void * pObjectPool, int * pOutIndex) returns the object pool, possibly resized. returns index of a free space in the pool through pOutIndex |
| void * | InitObjectPool (int objectSize, int poolInitialSize) |
Public Functions Documentation
function DoubleObjectPoolSize
void * DoubleObjectPoolSize (
void * pObjectPool
)
function FreeObjectPool
void * FreeObjectPool (
void * pObjectPool
)
function FreeObjectPoolIndex
void FreeObjectPoolIndex (
void * pObjectPool,
int indexToFree
)
function GetObjectPoolIndex
returns the object pool, possibly resized. returns index of a free space in the pool through pOutIndex
void * GetObjectPoolIndex (
void * pObjectPool,
int * pOutIndex
)
function InitObjectPool
void * InitObjectPool (
int objectSize,
int poolInitialSize
)
The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/src/core/ObjectPool.c