Navigation
API > API/Runtime > API/Runtime/NetCore > API/Runtime/NetCore/FNetBitArray
Description
Retrieves set bits in the provided range and returns how many indices were written to OutIndices. If OutIndices is filled to its capacity the search for set bits will end. OutIndices may be modified beyond the returned count but within the capacity.
| Name | GetSetBitIndices |
| Type | function |
| Header File | /Engine/Source/Runtime/Net/Core/Public/Net/Core/NetBitArray.h |
| Include Path | #include "Net/Core/NetBitArray.h" |
uint32 GetSetBitIndices
(
uint32 StartIndex,
uint32 Count,
uint32 * OutIndices,
uint32 OutIndicesCapacity
) const
Number of indices OutIndices was populated with.
Parameters
| Name | Remarks |
|---|---|
| StartIndex | Which bit index to start searching for set bits. |
| Count | How many bits to check. The count will be clamped to number of bits in the array so you can pass ~0U to check all bits. |
| OutIndices | Where to store the indices of the set bits. Indices with lower numbers will be stored first. |
| OutIndicesCapacity | How many indices can be stored in OutIndices. |