maxValue

fun maxValue(bitsPerValue: Int): Long

Calculates the maximum unsigned long that can be expressed with the given number of bits.

Return

the maximum value for the given bits.

Parameters

bitsPerValue

the number of bits available for any given value.