64 mBlockPool (blockPool),
73 if(size>PxcNpMemBlock::SIZE)
74 return mBlockPool.acquireExceptionalConstraintMemory(size);
76 if(mBlock == NULL || size+mUsed>PxcNpMemBlock::SIZE)
78 mBlock = mBlockPool.acquireConstraintBlock(manager.mTrackingArray);
79 PX_ASSERT(0==mBlock || mBlock->data ==
reinterpret_cast<PxU8*
>(mBlock));
81 return reinterpret_cast<PxU8*
>(mBlock);
83 PX_ASSERT(mBlock && mBlock->data ==
reinterpret_cast<PxU8*
>(mBlock));
110 mBlockPool(blockPool),
118 size = (size+15)&~15;
120 if(size>PxcNpMemBlock::SIZE)
121 return mBlockPool.acquireExceptionalConstraintMemory(size);
123 PX_ASSERT(size <= PxcNpMemBlock::SIZE);
125 if(mBlock == NULL || size+mUsed>PxcNpMemBlock::SIZE)
127 mBlock = mBlockPool.acquireContactBlock();
128 PX_ASSERT(0==mBlock || mBlock->data ==
reinterpret_cast<PxU8*
>(mBlock));
130 return reinterpret_cast<PxU8*
>(mBlock);
132 PX_ASSERT(mBlock && mBlock->data ==
reinterpret_cast<PxU8*
>(mBlock));
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39