IntExtensions.GetBits
Extension Method in IntExtensions
Declaration
public static int GetBits(this int n, int amount, int offset)Description
Returns a subset of bits from the number.
Parameters
| n | The number to get bits from. |
| amount | The amount of bits to return. |
| offset | The amount of bits to discard. |
Returns
| int | The subset of bits. |