| 318 | } |
| 319 | |
| 320 | bool Sq::BitArray::init(PxU32 nb_bits) |
| 321 | { |
| 322 | mSize = BitsToDwords(nb_bits); |
| 323 | // Get ram for n bits |
| 324 | PX_FREE(mBits); |
| 325 | mBits = reinterpret_cast<PxU32*>(PX_ALLOC(sizeof(PxU32)*mSize, "BitArray::mBits")); |
| 326 | // Set all bits to 0 |
| 327 | clearAll(); |
| 328 | return true; |
| 329 | } |
| 330 | |
| 331 | void Sq::BitArray::resize(PxU32 maxBitNumber) |
| 332 | { |
no test coverage detected