Public Member Functions | |
tMemStackItem () | |
~tMemStackItem () | |
void | Alloc () |
Public Attributes | |
void * | memory |
int | size |
Definition at line 45 of file tMemStack.cpp.
tMemStackItem::tMemStackItem | ( | ) | [inline] |
tMemStackItem::~tMemStackItem | ( | ) | [inline] |
void tMemStackItem::Alloc | ( | ) | [inline] |
Definition at line 63 of file tMemStack.cpp.
References free, malloc, memory, size, and ST_Size().
Referenced by tMemStack::IncreaseMem(), and tMemStack::tMemStack().
00064 { 00065 if ( ST_Size() > size ) 00066 { 00067 size = ST_Size(); 00068 if ( memory ) 00069 free(memory); 00070 00071 memory = malloc( size ); 00072 00073 00074 for ( int i = size-1; i>=0; --i ) 00075 00076 { 00077 00078 ((char*)(memory))[i] = 0; 00079 00080 } 00081 00082 } 00083 }
void* tMemStackItem::memory |
Definition at line 48 of file tMemStack.cpp.
Referenced by Alloc(), tMemStack::GetMem(), tMemStackItem(), and ~tMemStackItem().
Definition at line 49 of file tMemStack.cpp.
Referenced by Alloc(), tMemStack::GetSize(), and tMemStackItem().