TBitArray::PadToNum

Pad this bit array with the specified value to ensure that it is at least the specified length.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/BitArray.h"

Syntax

int32 PadToNum
(
    int32 DesiredNum,
    bool bPadValue
)

Remarks

Pad this bit array with the specified value to ensure that it is at least the specified length. Does nothing if Num() >= DesiredNum.

Returns

The number of bits that were added to the array, or 0 if Num() >= DesiredNum.

Parameters

Parameter

Description

DesiredNum

The desired number of elements that should exist in the array.

bPadValue

The value to pad with (0 or 1)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss