MCPcopy Create free account
hub / github.com/defold/defold / EnsureSize

Function EnsureSize

engine/rig/src/rig.cpp:89–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87
88 template <typename T>
89 static inline void EnsureSize(T& array, uint32_t size)
90 {
91 if (array.Capacity() < size) {
92 array.OffsetCapacity(size - array.Capacity());
93 }
94 array.SetSize(size);
95 }
96
97 static const dmRigDDF::RigAnimation* FindAnimation(const dmRigDDF::AnimationSet* anim_set, dmhash_t animation_id)
98 {

Callers 2

GenerateVertexDataFunction · 0.70

Calls 3

CapacityMethod · 0.45
OffsetCapacityMethod · 0.45
SetSizeMethod · 0.45

Tested by

no test coverage detected