A bit utility class (extracted from legacy CardHex class).
This class cannot be inherited.
Namespace:
CardWerk.SmartCard.Util
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Top
Assembly: CardWerk.SmartCard (in CardWerk.SmartCard.dll)
Public NotInheritable Class BitUtil
This language is not supported or no code example is available.
public sealed class BitUtil
This language is not supported or no code example is available.
public ref class BitUtil sealed
This language is not supported or no code example is available.
Name | Description | |
---|---|---|
![]() ![]() |
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. |
![]() ![]() |
LongFromByteArray(byte[], int, int, int) | 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. |
![]() ![]() |
ReverseBitOrder(byte) | Reverses the bit order within a byte. |
![]() ![]() |
ShiftBit(byte[]) | Rolls a byte array by one bit. |
![]() ![]() |
ShiftBits(ref byte[], int) | Shifts a byte array by numberOfBitsShifted. Currently only rightShifts are supported. |