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)

Public Shared Function FromByteArray( _ 
ByVal data As Byte(), _ 
ByVal byteOffset As Integer, _ 
ByVal bitOffset As Integer, _ 
ByVal numberOfBits As Integer
) As Integer
This language is not supported or no code example is available.
public static int FromByteArray( 
byte[] data
int byteOffset
int bitOffset
int numberOfBits 
)
This language is not supported or no code example is available.
public:  
static int FromByteArray( 
array< Byte >^ data
int byteOffset
int bitOffset
int numberOfBits 
)
This language is not supported or no code example is available.
public static function FromByteArray( 
data : byte[], 
byteOffset : int
bitOffset : int
numberOfBits : int 
) : int;
This language is not supported or no code example is available.

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: int

Returns a 32-bit int value.

.NET Framework

Supported in: 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

.NET Core

Supported in: 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0

.NET Standard

Supported in: 2.0