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)

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.
public final class BitUtil
This language is not supported or no code example is available.
Name Description
Public method Static 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.
Public method Static 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.
Public method Static ReverseBitOrder(byte) Reverses the bit order within a byte.
Public method Static ShiftBit(byte[]) Rolls a byte array by one bit.
Public method Static ShiftBits(ref byte[], int) Shifts a byte array by numberOfBitsShifted. Currently only rightShifts are supported.
Top

.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