Extracts the BCD encoded number from raw PACS data.

Namespace: CardWerk.SmartCard.DataModule.Wiegand
Assembly: CardWerk.SmartCard.CardModule.Prox (in CardWerk.SmartCard.CardModule.Prox.dll)

Friend Function ExtractBcd( _ 
ByVal offset As Integer, _ 
ByVal length As Integer
) As Long
This language is not supported or no code example is available.
internal long ExtractBcd( 
int offset
int length 
)
This language is not supported or no code example is available.
public private:  
long ExtractBcd( 
int offset
int length 
)
This language is not supported or no code example is available.
internal function ExtractBcd( 
offset : int
length : int 
) : long;
This language is not supported or no code example is available.

Parameters

offset
Type: int

Offset of the first hex digit.

length
Type: int

Number of digits to extract.

Return Value

Type: long

The extracted BCD.

example: extracting from 0x001234 with offset=3, length=4 returns 1234 (0x4D2 hex)

.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