tuweni / org.apache.tuweni.ssz / SSZ / decodeBigIntegerList

decodeBigIntegerList

static fun decodeBigIntegerList(source: Bytes!, bitLength: Int): MutableList<BigInteger!>! (source)

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

Parameters

source - Bytes!: the SSZ encoded bytes

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

Exceptions

InvalidSSZTypeException - if the next SSZ value is not a list, or there are insufficient encoded bytes for the desired bit length or any value in the list

EndOfSSZException - if there are no more SSZ values to read

Return
MutableList<BigInteger!>!: a list of ints