Method BitsRequired
BitsRequired(Int64)
Returns how many bits are required to hold values up
to and including maxValue
.
@lucene.internal
Declaration
public static int BitsRequired(long maxValue)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | maxValue | The maximum value that should be representable. |
Returns
Type | Description |
---|---|
System.Int32 | The amount of bits needed to represent values from 0 to |