ssz / org.apache.tuweni.ssz / SSZ / decodeULong

decodeULong

static fun decodeULong(source: Bytes, bitLength: Int): Long (source)

Read a SSZ encoded unsigned long integer from a Bytes value.

Parameters

source - the SSZ encoded bytes

bitLength - the bit length of the integers 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 a long

EndOfSSZException - if there are no more SSZ values to read

Return
an unsigned long