UtilitySetBit Method (UInt32, Int32, Boolean) |
Sets a bit in a 32-bit variable.
Namespace: StreamCoders.Container.MP4Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax public static void SetBit(
ref uint val,
int bitnum,
bool variable
)
Public Shared Sub SetBit (
ByRef val As UInteger,
bitnum As Integer,
variable As Boolean
)
public:
static void SetBit(
unsigned int% val,
int bitnum,
bool variable
)
static member SetBit :
val : uint32 byref *
bitnum : int *
variable : bool -> unit
Parameters
- val
- Type: SystemUInt32
[in,out] The variable to use.
- bitnum
- Type: SystemInt32
The bit number to set.
- variable
- Type: SystemBoolean
Set to true for '1' or false for '0'.
See Also