tuweni / org.apache.tuweni.bytes / Bytes / numberOfLeadingZeros

numberOfLeadingZeros

open fun numberOfLeadingZeros(): Int (source)

Provides the number of zero bits preceding the highest-order ("leftmost") one-bit, or size() * 8 if all bits * are zero.

Return
Int: The number of zero bits preceding the highest-order ("leftmost") one-bit, or size() * 8 if all bits are zero.