| 395 | } |
| 396 | |
| 397 | virtual void Free( void* mem ) override { |
| 398 | if ( !mem ) { |
| 399 | return; |
| 400 | } |
| 401 | --_currentAllocs; |
| 402 | Item* item = static_cast<Item*>( mem ); |
| 403 | #ifdef TINYXML2_DEBUG |
| 404 | memset( item, 0xfe, sizeof( *item ) ); |
| 405 | #endif |
| 406 | item->next = _root; |
| 407 | _root = item; |
| 408 | } |
| 409 | void Trace( const char* name ) { |
| 410 | printf( "Mempool %s watermark=%d [%dk] current=%d size=%d nAlloc=%d blocks=%d\n", |
| 411 | name, _maxAllocs, _maxAllocs * ITEM_SIZE / 1024, _currentAllocs, |
no outgoing calls
no test coverage detected