Creates a CardResponseAPDU instance by parsing a response APDU given as a range inside a byte array.

Namespace: CardWerk.SmartCard
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)

Public Shared Function ParseBytes( _ 
ByVal vbResponseAPDU As Byte(), _ 
ByVal nOffset As Integer, _ 
ByVal nLength As Integer
) As CardResponseAPDU
This language is not supported or no code example is available.
public static CardResponseAPDU ParseBytes( 
byte[] vbResponseAPDU
int nOffset
int nLength 
)
This language is not supported or no code example is available.
public:  
static CardResponseAPDU^ ParseBytes( 
array< Byte >^ vbResponseAPDU
int nOffset
int nLength 
)
This language is not supported or no code example is available.
public static function ParseBytes( 
vbResponseAPDU : byte[], 
nOffset : int
nLength : int 
) : CardResponseAPDU;
This language is not supported or no code example is available.

Parameters

vbResponseAPDU
Type: byte[]

Byte array that contains the response APDU. The parameter must not be null.

nOffset
Type: int

Offset into the byte array where the response APDU begins.

nLength
Type: int

Length of the response APDU inside the byte array.

Return Value

Type: CardResponseAPDU

A CardResponseAPDU.

Exception type Condition

ArgumentOutOfRangeException

The given response APDU is not a valid ISO 7816-4 response APDU or the nOffset or the nLength parameter was invalid.

ArgumentNullException

The parameter vbResponseAPDU was null.

Marc, 9/29/2022.

.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