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

Method assign

physx/source/foundation/include/PsArray.h:520–524  ·  view source on GitHub ↗

///////////////////////////////////////////////////////////////////// ! Assign a range of values to this vector (resizes to length of range) */ /////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

518 */
519 //////////////////////////////////////////////////////////////////////////
520 PX_INLINE void assign(const T* first, const T* last)
521 {
522 resizeUninitialized(uint32_t(last - first));
523 copy(begin(), end(), first);
524 }
525
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.

Callers 2

loadMethod · 0.45
addConnectorMethod · 0.45

Calls 1

copyFunction · 0.85

Tested by

no test coverage detected