orx  1.14
Portable Game Engine
orxMemory.h File Reference
#include "orxInclude.h"
#include "debug/orxDebug.h"
#include <string.h>

Go to the source code of this file.

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 voidorxMemory_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 voidorxMemory_Move (void *_pDest, const void *_pSrc, orxU32 _u32Size)
 
orxDLLAPI void *orxFASTCALL orxMemory_Reallocate (void *_pMem, orxU32 _u32Size, orxMEMORY_TYPE _eMemType)
 
static orxINLINE voidorxMemory_Set (void *_pDest, orxU8 _u8Data, orxU32 _u32Size)
 
orxDLLAPI void orxFASTCALL orxMemory_Setup ()
 
static orxINLINE voidorxMemory_Zero (void *_pDest, orxU32 _u32Size)
 

Detailed Description

Date
02/04/2005
Author
iarwa.nosp@m.in@o.nosp@m.rx-pr.nosp@m.ojec.nosp@m.t.org
Todo:
  • Manage memory alignment
  • Allow to specify memory starting address & maximum size for each memory type

Definition in file orxMemory.h.


Generated for orx by doxygen 1.8.11