tuweni / org.apache.tuweni.units.bigints / UInt256Value / bitLength

bitLength

open fun bitLength(): Int (source)

Provides the number of bits following and including the highest-order ("leftmost") one-bit in the binary representation of this value, or zero if all bits are zero.

Return
Int: The number of bits following and including the highest-order ("leftmost") one-bit in the binary representation of this value, or zero if all bits are zero.