Interprets a byte array as MSB first (leftmost bit) and allows extraction, of a long (64
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 LongFromByteArray( _
ByVal data As Byte(), _
ByVal byteOffset As Integer, _
ByVal bitOffset As Integer, _
ByVal numberOfBits As Integer _
) As Long
This language is not supported or no code example is available.
public static long LongFromByteArray(
byte[] data,
int byteOffset,
int bitOffset,
int numberOfBits
)
This language is not supported or no code example is available.
public:
static long LongFromByteArray(
array< Byte >^ data,
int byteOffset,
int bitOffset,
int numberOfBits
)
This language is not supported or no code example is available.
public static function LongFromByteArray(
data : byte[],
byteOffset : int,
bitOffset : int,
numberOfBits : int
) : long;
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:
long
Returns a 64-bit long 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