tuweni / org.apache.tuweni.ssz / SSZReader / readUInt

readUInt

open fun readUInt(bitLength: Int): Int (source)

Read an unsigned int value from the SSZ source.

Parameters

bitLength - Int: The bit length of the integer to read (a multiple of 8).

Exceptions

InvalidSSZTypeException - If there are insufficient encoded bytes for the desired bit length, or the decoded value was too large to fit into an int.

EndOfSSZException - If there are no more SSZ values to read.

Return
Int: An unsigned int.