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

Function SetAll

Source/Engine/Core/Collections/BitArray.h:290–294  ·  view source on GitHub ↗

Sets all items to the given value The value to assign to all the collection items.

Source from the content-addressed store, hash-verified

288 /// </summary>
289 /// <param name="value">The value to assign to all the collection items.</param>
290 void SetAll(const bool value)
291 {
292 if (_count != 0)
293 Platform::MemorySet(_allocation.Get(), ToItemCount(_count) * sizeof(ItemType), value ? MAX_uint32 : 0);
294 }
295
296 /// <summary>
297 /// Adds the specified item to the collection.

Callers

nothing calls this directly

Calls 2

MemorySetFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected