Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TBitArray
Description
Finds the first occurrence of a zero bit in the array and sets it to one, returning the bit index. If there are no zero bits in the array, INDEX_NONE is returned.
| Name | FindAndSetFirstZeroBit |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/BitArray.h |
| Include Path | #include "Containers/BitArray.h" |
int32 FindAndSetFirstZeroBit
(
int32 StartIndex
)
The index of the first occurrence of a zero bit that was successfully set to one, or INDEX_NONE if not found.
Parameters
| Name | Remarks |
|---|---|
| StartIndex | The index to start the search from. Defaults to 0. |