Click or drag to resize

BitWiseBitFlagsToArray Method

Converts bit flag fragments of an unsigned integer to a bit array.

Namespace:  RRAutoLib.Loconet
Assembly:  RRAutoLib (in RRAutoLib.dll) Version: 4.0.8678.28884
Syntax
Public Shared Function BitFlagsToArray ( 
	intSource As UInteger,
	bytLength As Byte
) As OnOff()

Parameters

intSource
Type: SystemUInt32
Source bits to extract the flags from.
bytLength
Type: SystemByte
Number of bits that represent the flags, read from right to left.

Return Value

Type: OnOff
Remarks
Assumes the bit flags start with the least significant bit. If they don't, use CopyBits(UInt32, Byte, Byte, UInt32, Byte) to correct this.
See Also