Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TBitArray
Description
Pad this bit array with the specified value to ensure that it is at least the specified length. Does nothing if Num() >= DesiredNum.
| Name | PadToNum |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/BitArray.h |
| Include Path | #include "Containers/BitArray.h" |
int32 PadToNum
(
int32 DesiredNum,
bool bPadValue
)
The number of bits that were added to the array, or 0 if Num() >= DesiredNum.
Parameters
| Name | Remarks |
|---|---|
| DesiredNum | The desired number of elements that should exist in the array. |
| bPadValue | The value to pad with (0 or 1) |