TBitArray::PadToNum

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

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

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)