MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / isInUserMemory

Method isInUserMemory

physx/source/foundation/include/PsArray.h:528–531  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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()

Callers 2

addConnectorMethod · 0.80
removeConnectorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected