QuakeForge  0.7.2.210-815cf
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
zone.c File Reference

Macros

#define HUNK_SENTINAL   0x1df001ed
 
#define MINFRAGMENT   64
 
#define ZONEID   0x1d4a11
 

Typedefs

typedef struct cache_system_s cache_system_t
 
typedef struct memblock_s memblock_t
 

Functions

void Cache_Add (cache_user_t *c, void *object, cache_loader_t loader)
 
void * Cache_Alloc (cache_user_t *c, int size, const char *name)
 
void * Cache_Check (cache_user_t *c)
 
void Cache_Flush (void)
 
void Cache_Free (cache_user_t *c)
 
void * Cache_Get (cache_user_t *c)
 
int Cache_ReadLock (cache_user_t *c)
 
void Cache_Release (cache_user_t *c)
 
void Cache_Remove (cache_user_t *c)
 
void Cache_Report (void)
 
void * Cache_TryGet (cache_user_t *c)
 
void * Hunk_Alloc (int size)
 
void * Hunk_AllocName (int size, const char *name)
 
void Hunk_Check (void)
 
void Hunk_FreeToLowMark (int mark)
 
int Hunk_LowMark (void)
 
void * Hunk_TempAlloc (int size)
 
void Memory_Init (void *buf, int size)
 
void Z_CheckHeap (memzone_t *zone)
 
void Z_CheckPointer (const memzone_t *zone, const void *ptr, int size)
 
void Z_ClearZone (memzone_t *zone, int size, int zone_offset, int ele_size)
 
void Z_Free (memzone_t *zone, void *ptr)
 
void * Z_Malloc (memzone_t *zone, int size)
 
void Z_Print (memzone_t *zone)
 
void * Z_Realloc (memzone_t *zone, void *ptr, int size)
 
void Z_SetError (memzone_t *zone, void(*err)(void *, const char *), void *data)
 
void * Z_TagMalloc (memzone_t *zone, int size, int tag)
 

Variables

bytehunk_base
 
int hunk_high_used
 
int hunk_low_used
 
int hunk_size
 
qboolean hunk_tempactive
 
int hunk_tempmark
 

Macro Definition Documentation

#define HUNK_SENTINAL   0x1df001ed
#define MINFRAGMENT   64
#define ZONEID   0x1d4a11

Typedef Documentation

typedef struct cache_system_s cache_system_t
typedef struct memblock_s memblock_t

Function Documentation

void Z_SetError ( memzone_t zone,
void(*)(void *, const char *)  err,
void *  data 
)

Variable Documentation

byte* hunk_base
int hunk_high_used
int hunk_low_used
int hunk_size
qboolean hunk_tempactive
int hunk_tempmark