ByteExtensions.GetBits Method
Definition
Gets a range of bits from a byte, shifted down to the least significant position.
public static Byte GetBits(this Byte value, int startInclusive, int endInclusive);
Parameters
| Name | Type | Description |
|---|---|---|
| value | Byte | The byte value. |
| startInclusive | Int32 | The zero-based start bit index, inclusive. |
| endInclusive | Int32 | The zero-based end bit index, inclusive. |
Returns
The extracted bits, shifted right so the start bit is at position 0.