Revision 1378,
825 bytes
checked in by giegl, 18 years ago
(diff) |
GTPD - Jungle Rumble - integrate into GTP SVN structure
|
Line | |
---|
1 | #ifndef USERALLOCATOR_H
|
---|
2 | #define USERALLOCATOR_H
|
---|
3 |
|
---|
4 | class UserAllocator : public NxUserAllocator
|
---|
5 | {
|
---|
6 | public:
|
---|
7 | UserAllocator();
|
---|
8 | virtual ~UserAllocator();
|
---|
9 |
|
---|
10 | void reset();
|
---|
11 |
|
---|
12 | void* malloc(size_t size);
|
---|
13 | void* malloc(size_t size, NxMemoryType type);
|
---|
14 | void* mallocDEBUG(size_t size, const char* file, int line);
|
---|
15 | #ifdef _DEBUG
|
---|
16 | void* mallocDEBUG(size_t size, const char* file, int line, const char* className, NxMemoryType type);
|
---|
17 | #endif
|
---|
18 | void* realloc(void* memory, size_t size);
|
---|
19 | void free(void* memory);
|
---|
20 |
|
---|
21 | size_t* mMemBlockList;
|
---|
22 | NxU32 mMemBlockListSize;
|
---|
23 | NxU32 mMemBlockFirstFree;
|
---|
24 | NxU32 mMemBlockUsed;
|
---|
25 |
|
---|
26 | NxI32 mNbAllocatedBytes;
|
---|
27 | NxI32 mHighWaterMark;
|
---|
28 | NxI32 mTotalNbAllocs;
|
---|
29 | NxI32 mNbAllocs;
|
---|
30 | NxI32 mNbReallocs;
|
---|
31 | };
|
---|
32 |
|
---|
33 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.