tuweni / org.apache.tuweni.ssz / SSZ / decodeIntList

decodeIntList

static fun decodeIntList(source: Bytes, bitLength: Int): MutableList<Int> (source)

Read a list of two's-compliment int values from the SSZ source.

Parameters

source - the SSZ encoded bytes

bitLength - the bit length of the integers to read (a multiple of 8)

Exceptions

InvalidSSZTypeException - if the next SSZ value is not a list, there are insufficient encoded bytes for the desired bit length or any value in the list, or any decoded value was too large to fit into an int

EndOfSSZException - if there are no more SSZ values to read

Return
a list of ints