nw::ut::SetFlagValue Function

Syntax

template <typename TFlags, typename TMask, typename TValue>
TFlags SetFlagValue(
     const TFlags & flags,
     int shift,
     const TMask & mask,
     const TValue & value
);

Arguments

Name Description
in flags The current bit field.
in shift Bit shift used for the setting.
in mask Mask used for the setting.
in value Bit value to be set.

Return Values

Returns the value of the flag for which a bit value has been set.

Description

Sets the bit value of the specified mask in the bit field.


CONFIDENTIAL