doom3-gpl
Doom 3 GPL source release
|
Classes | |
struct | mediumHeapEntry_s |
struct | page_s |
Public Member Functions | |
idHeap (void) | |
~idHeap (void) | |
void | Init (void) |
void * | Allocate (const dword bytes) |
void | Free (void *p) |
void * | Allocate16 (const dword bytes) |
void | Free16 (void *p) |
dword | Msize (void *p) |
void | Dump (void) |
void | AllocDefragBlock (void) |
Private Types | |
enum | { ALIGN = 8 } |
enum | { INVALID_ALLOC = 0xdd, SMALL_ALLOC = 0xaa, MEDIUM_ALLOC = 0xbb, LARGE_ALLOC = 0xcc } |
Private Member Functions | |
page_s * | AllocatePage (dword bytes) |
void | FreePage (idHeap::page_s *p) |
void * | SmallAllocate (dword bytes) |
void | SmallFree (void *ptr) |
void * | MediumAllocateFromPage (idHeap::page_s *p, dword sizeNeeded) |
void * | MediumAllocate (dword bytes) |
void | MediumFree (void *ptr) |
void * | LargeAllocate (dword bytes) |
void | LargeFree (void *ptr) |
void | ReleaseSwappedPages (void) |
void | FreePageReal (idHeap::page_s *p) |
|
private |
|
private |
|
private |
|
private |
|
private |