Modifier

Partager via


BoolExtensions.ToBitwiseMask64(Boolean) Method

Definition

Converts the given Boolean value to a Int64 mask with all bits representing the value of the input flag (either all 1s or 0s).

public static long ToBitwiseMask64 (this bool flag);
static member ToBitwiseMask64 : bool -> int64
<Extension()>
Public Function ToBitwiseMask64 (flag As Boolean) As Long

Parameters

flag
Boolean

The input value to convert.

Returns

All 1s if flag is true, all 0s otherwise.

Remarks

This method does not contain branching instructions. See additional note in ToBitwiseMask32(Boolean).

Applies to