orx
1.14
Portable Game Engine
|
Macros | |
#define | orxMEMORY_BARRIER() |
#define | orxMEMORY_TRACK(TYPE, SIZE, ALLOCATE) |
Enumerations | |
enum | orxMEMORY_TYPE { orxMEMORY_TYPE_MAIN = 0, orxMEMORY_TYPE_AUDIO, orxMEMORY_TYPE_CONFIG, orxMEMORY_TYPE_DEBUG, orxMEMORY_TYPE_PHYSICS, orxMEMORY_TYPE_SYSTEM, orxMEMORY_TYPE_TEMP, orxMEMORY_TYPE_TEXT, orxMEMORY_TYPE_VIDEO, orxMEMORY_TYPE_NUMBER, orxMEMORY_TYPE_NONE = orxENUM_NONE } |
Functions | |
orxDLLAPI void *orxFASTCALL | orxMemory_Allocate (orxU32 _u32Size, orxMEMORY_TYPE _eMemType) |
static orxINLINE orxU32 | orxMemory_Compare (const void *_pMem1, const void *_pMem2, orxU32 _u32Size) |
static orxINLINE void * | orxMemory_Copy (void *_pDest, const void *_pSrc, orxU32 _u32Size) |
orxDLLAPI void orxFASTCALL | orxMemory_Exit () |
orxDLLAPI void orxFASTCALL | orxMemory_Free (void *_pMem) |
orxDLLAPI orxU32 orxFASTCALL | orxMemory_GetCacheLineSize () |
orxDLLAPI const orxSTRING orxFASTCALL | orxMemory_GetTypeName (orxMEMORY_TYPE _eMemType) |
orxDLLAPI orxSTATUS orxFASTCALL | orxMemory_Init () |
static orxINLINE void * | orxMemory_Move (void *_pDest, const void *_pSrc, orxU32 _u32Size) |
orxDLLAPI void *orxFASTCALL | orxMemory_Reallocate (void *_pMem, orxU32 _u32Size, orxMEMORY_TYPE _eMemType) |
static orxINLINE void * | orxMemory_Set (void *_pDest, orxU8 _u8Data, orxU32 _u32Size) |
orxDLLAPI void orxFASTCALL | orxMemory_Setup () |
static orxINLINE void * | orxMemory_Zero (void *_pDest, orxU32 _u32Size) |
Memory module Module that handles all low level allocation/free requests
#define orxMEMORY_BARRIER | ( | ) |
Memory barrier macros
Definition at line 70 of file orxMemory.h.
#define orxMEMORY_TRACK | ( | TYPE, | |
SIZE, | |||
ALLOCATE | |||
) |
Memory tracking macros
Definition at line 81 of file orxMemory.h.
enum orxMEMORY_TYPE |
Memory type
Definition at line 87 of file orxMemory.h.
orxDLLAPI void* orxFASTCALL orxMemory_Allocate | ( | orxU32 | _u32Size, |
orxMEMORY_TYPE | _eMemType | ||
) |
Allocates some memory in the system and returns a pointer to it
[in] | _u32Size | Size of the memory to allocate |
[in] | _eMemType | Memory zone where data will be allocated |
|
static |
Compares two parts of memory
[in] | _pMem1 | First part to test |
[in] | _pMem2 | Second part to test |
[in] | _u32Size | Size of data to test |
Definition at line 181 of file orxMemory.h.
Copies a part of memory into another one
[out] | _pDest | Destination pointer |
[in] | _pSrc | Pointer of memory from where data are read |
[in] | _u32Size | Size of data |
Definition at line 149 of file orxMemory.h.
Frees some memory allocated with orxMemory_Allocate
[in] | _pMem | Pointer to the memory allocated by orx |
orxDLLAPI orxU32 orxFASTCALL orxMemory_GetCacheLineSize | ( | ) |
Gets L1 data cache line size
orxDLLAPI const orxSTRING orxFASTCALL orxMemory_GetTypeName | ( | orxMEMORY_TYPE | _eMemType | ) |
Gets memory type literal name
[in] | _eMemType | Concerned memory type |
Inits the memory module
Moves a part of memory into another one
[out] | _pDest | Destination pointer |
[in] | _pSrc | Pointer of memory from where data are read |
[in] | _u32Size | Size of data |
Definition at line 165 of file orxMemory.h.
orxDLLAPI void* orxFASTCALL orxMemory_Reallocate | ( | void * | _pMem, |
orxU32 | _u32Size, | ||
orxMEMORY_TYPE | _eMemType | ||
) |
Reallocates a previously allocated memory block, with the given new size and returns a pointer to it If possible, it'll keep the current pointer and extend the memory block, if not it'll allocate a new block, copy the data over and deallocates the original block
[in] | _pMem | Memory block to reallocate |
[in] | _u32Size | Size of the memory to allocate |
[in] | _eMemType | Memory zone where data will be allocated |
Fills a part of memory with _u32Data
[out] | _pDest | Destination pointer |
[in] | _u8Data | Values of the data that will fill the memory |
[in] | _u32Size | Size of data |
Definition at line 197 of file orxMemory.h.
Fills a part of memory with zeroes
[out] | _pDest | Destination pointer |
[in] | _u32Size | Size of data |
Definition at line 211 of file orxMemory.h.