Interprets a byte array as MSB first (leftmost bit) and then allows extraction, of a int
(32 bit) value by byte offset, bit offset and number of bits COUNTING BITS FROM LSB to MSB
i.e. right to left.
Namespace:
CardWerk.SmartCard.Util
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Parameters
- data
-
Type: byte[]
Byte array to extract bit sequence from.
- byteOffset
-
Type: int
Byte offset, starting on the LSB side i.e. right side of the byte array.
- bitOffset
-
Type: int
Bit offset, starting on right side of the byte array plus byteOffset if applicable.
- numberOfBits
-
Type: int
The number of bits that need to be extracted from the byte array.
Return Value
Type: intReturns a 32-bit int value.