Method GetUsedBitCount
GetUsedBitCount(uint)
Get the minimum number of bits required to represent the given value
Declaration
public static int GetUsedBitCount(uint value)
Parameters
Type | Name | Description |
---|---|---|
uint | value | The value |
Returns
Type | Description |
---|---|
int | The number of bits required |
GetUsedBitCount(ulong)
Get the minimum number of bits required to represent the given value
Declaration
public static int GetUsedBitCount(ulong value)
Parameters
Type | Name | Description |
---|---|---|
ulong | value | The value |
Returns
Type | Description |
---|---|
int | The number of bits required |