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

Method Clear

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

Clear the collection without changing its capacity.

Source from the content-addressed store, hash-verified

351 /// Clear the collection without changing its capacity.
352 /// </summary>
353 void Clear()
354 {
355 if (_count != 0)
356 {
357 Memory::DestructItems(_allocation.Get(), _count);
358 _count = 0;
359 }
360 }
361
362 /// <summary>
363 /// Clears the collection without changing its capacity. Deletes all not null items.

Callers 3

DeserializeMethod · 0.45
GroupByMethod · 0.45
DefaultClearCallbackFunction · 0.45

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected