| 53 | } |
| 54 | |
| 55 | void PtrTable::clear(PtrTableStorageManager& sm) |
| 56 | { |
| 57 | if(mOwnsMemory && mCount>1) |
| 58 | { |
| 59 | PxU32 implicitCapacity = Ps::nextPowerOfTwo(PxU32(mCount)-1); |
| 60 | sm.deallocate(mList, sizeof(void*)*implicitCapacity); |
| 61 | } |
| 62 | |
| 63 | mList = NULL; |
| 64 | mOwnsMemory = true; |
| 65 | mCount = 0; |
| 66 | } |
| 67 | |
| 68 | PxU32 PtrTable::find(const void* ptr) const |
| 69 | { |
no test coverage detected