Method MaxValue
MaxValue(Int32)
Calculates the maximum unsigned long that can be expressed with the given number of bits.
@lucene.internal
Declaration
public static long MaxValue(int bitsPerValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | bitsPerValue | The number of bits available for any given value. |
Returns
Type | Description |
---|---|
System.Int64 | The maximum value for the given bits. |