tuweni / org.apache.tuweni.ssz / SSZ / encodeUIntList

encodeUIntList

static fun encodeUIntList(bitLength: Int, vararg elements: Int): Bytes (source)
static fun encodeUIntList(bitLength: Int, elements: MutableList<Int>): Bytes (source)

Encode a list of unsigned integers. Note that the elements are native signed ints, but will be interpreted as an unsigned values.

Parameters

bitLength - the bit length of the encoded integers (must be a multiple of 8)

elements - the integers to write

Exceptions

IllegalArgumentException - if any values are too large for the specified bitLength

Return
SSZ encoding in a Bytes value