We need one bit to mark arrays that have been deserialized from a user-provided memory block. For alignment & memory saving purpose we store that bit in the rarely used capacity member.
| 526 | // We need one bit to mark arrays that have been deserialized from a user-provided memory block. |
| 527 | // For alignment & memory saving purpose we store that bit in the rarely used capacity member. |
| 528 | PX_FORCE_INLINE uint32_t isInUserMemory() const |
| 529 | { |
| 530 | return mCapacity & PX_SIGN_BITMASK; |
| 531 | } |
| 532 | |
| 533 | /// return reference to allocator |
| 534 | PX_INLINE Alloc& getAllocator() |
no outgoing calls
no test coverage detected