Helper class to make life with card hex data easier.
Namespace:
CardWerk.SmartCard.Util
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Top
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Public NotInheritable Class CardHex
This language is not supported or no code example is available.
public sealed class CardHex
This language is not supported or no code example is available.
public ref class CardHex sealed
This language is not supported or no code example is available.
Name | Description | |
---|---|---|
![]() ![]() |
AND(byte[], byte[]) | ANDs two byte arrays of equal length.. |
![]() ![]() |
BitWiseAndForArray(byte[], byte[]) | Calculate bitwise AND for two arrays with leading zero padding of the shorter byte array. |
![]() ![]() |
BitWiseAndForArrayIsNotZero(byte[], byte[]) | Returns true if bitwise AND of two arrays is not equal to 0. |
![]() ![]() |
Compare(byte[], byte[], int) | Compares objects. |
![]() ![]() |
Compare(byte[], int, byte[], int, int) | Compares a section of one byte array with the section of a second byte array. |
![]() ![]() |
DataToTrace(byte[]) | Converts binary data into a string representation based on the Windows 1252 encoding. |
![]() ![]() |
DataToTrace(byte[], int, int) | Converts binary data into an ASCII string representation. Unprintable characters are replaced by dots. |
![]() ![]() |
FromBcd(byte[]) | convert BCD encoded byte array to int value |
![]() ![]() |
FromByte(byte) | Converts a given byte into a string of two hex digits. |
![]() ![]() |
FromByteArray(byte[], int, int, int) | 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. |
![]() ![]() |
FromByteArray(byte[]) | Converts the entire given byte array into a string of hex digits. |
![]() ![]() |
FromByteArray(byte[], int, int) | Converts a range from the given byte array into a string of hex digits. |
![]() ![]() |
FromDigit(char) | Returns the numerical value of the given hex digit character. |
![]() ![]() |
FromDword(int) | Converts a given 32 bit DWORD into a string of eight hex digits. The most significant nibble will be encoded as the first character, the least significant nibble will be encoded as the eighth character. |
![]() ![]() |
FromWord(int) | Converts a given 16 bit word into a string of four hex digits. The most significant nibble will be encoded as the first character, the least significant nibble will be encoded as the fourth character. |
![]() ![]() |
IsDigit(char) | Tests whether the given character is a valid hex digit. |
![]() ![]() |
IsEqual(byte[], byte[]) | Tests whether two given byte arrays are binary identical. Returns false if either parameter is null. |
![]() ![]() |
IsEqual(byte[], int, byte[], int, int) | Tests whether two sections of byte arrays are binary identical. |
![]() ![]() |
IsHex(string) | Checks whether the given string is a valid hex number. |
![]() ![]() |
ToByteArray(string) | Converts a string of hex digits into a byte array. |
![]() ![]() |
ToByteArray(string, byte[], int) | Converts a string of hex digits into bytes into a byte array. |
![]() ![]() |
ToDigit(int) | Converts an int representing a nibble to a hex digit character to a given value. |
![]() ![]() |
XORN(byte[], byte[]) | XORes an two byte arrays of equal length. |