static fun decodeUInt(source: Bytes!, bitLength: Int): Int
(source)
Read a SSZ encoded unsigned integer from a Bytes
value.
source
- Bytes!: the SSZ encoded bytes
bitLength
- Int: the bit length of the integers to read (a multiple of 8)
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