MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / AddDefault

Method AddDefault

Source/Engine/Core/Collections/Array.h:511–516  ·  view source on GitHub ↗

Adds the given amount of items to the collection. The items count.

Source from the content-addressed store, hash-verified

509 /// </summary>
510 /// <param name="count">The items count.</param>
511 FORCE_INLINE void AddDefault(const int32 count = 1)
512 {
513 EnsureCapacity(_count + count);
514 Memory::ConstructItems(_allocation.Get() + _count, count);
515 _count += count;
516 }
517
518 /// <summary>
519 /// Adds the given amount of uninitialized items to the collection without calling the constructor.

Callers 12

SetupLightMethod · 0.45
AddGoalMethod · 0.45
GetOrCreateStateMethod · 0.45
InitMethod · 0.45
InitMethod · 0.45
TickMethod · 0.45
StringBuilder.hFile · 0.45
CallEventMethod · 0.45

Calls 2

EnsureCapacityFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected