FBitSet

Functions for manipulating bit sets.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/BitArray.h

Include

#include "Containers/BitArray.h"

Syntax

struct FBitSet

Remarks

Functions for manipulating bit sets.

Functions

Name Description

Public function Static

uint32

 

CalculateNumWords

(
    int32 NumBits
)

Public function Static

uint32

 

GetAndClearNextBit

(
    uint32& Mask
)

Clears the next set bit in the mask and returns its index.

Constants

Name

Description

BitsPerWord

Clang generates 7 instructions for int32 DivideAndRoundUp but only 2 for uint32.