UIntExtensions.GetBits

Extension Method in UIntExtensions

Declaration

public static uint GetBits(this uint n, int amount, int offset)

Description

Returns a subset of bits from the number.

Parameters

nThe number to get bits from.
amountThe amount of bits to return.
offsetThe amount of bits to discard.

Returns

uintThe subset of bits.