unsignedBitsRequired
Returns how many bits are required to hold values up to and including maxValue, interpreted as an unsigned value.
Return
the amount of bits needed to represent values from 0 to maxValue.
Parameters
maxValue
the maximum value that should be representable.