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

Method reserve

physx/source/foundation/include/PsArray.h:476–480  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////// ! Ensure that the array has at least size capacity. */ /////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

474 */
475 //////////////////////////////////////////////////////////////////////////
476 PX_INLINE void reserve(const uint32_t capacity)
477 {
478 if(capacity > this->capacity())
479 grow(capacity);
480 }
481
482 //////////////////////////////////////////////////////////////////////////
483 /*!

Callers

nothing calls this directly

Calls 1

capacityMethod · 0.95

Tested by

no test coverage detected