Constructs a card selector object which compares the cards history bytes to history bytes specified within constructor.

Namespace: BasicCard.ProcessorCards
Assembly: BasicCard (in BasicCard.dll) Version: 2.5.2.0 (2.5.2.0)

Syntax

C#
public AtrHistoryCardSelector(
	byte[] history,
	byte[] mask
)
Visual Basic
Public Sub New ( 
	history As Byte(),
	mask As Byte()
)
Visual C++
public:
AtrHistoryCardSelector(
	array<unsigned char>^ history, 
	array<unsigned char>^ mask
)
F#
new : 
        history : byte[] * 
        mask : byte[] -> AtrHistoryCardSelector

Parameters

history
Type: array<System..::..Byte>[]()[][]
History bytes to compare with.
mask
Type: array<System..::..Byte>[]()[][]
Mask to specify which history bytes must be compared (can be null).

Remarks

A card is accepted if cardhistory[i] XOR history[i] AND mask[i]=0. Or in other words to ignore some bytes within cards history set mask for this bytes to 0, otherwise set mask for this byte to 255 (FFh).

See Also