setFlagMasked

Sets a flag in a masked value based on the provided state.

static pure @nogc
void
setFlagMasked
(
T
)
(
ref T value
,,,
bool state
)

Parameters

value T

Reference to the value where the flag will be modified.

mask T

The mask to apply to the value.

flag T

The flag to set or clear.

state bool

A boolean indicating whether to set or clear the flag.

Meta