ssz / org.apache.tuweni.ssz / SSZ / encodeUInt8List

encodeUInt8List

static fun encodeUInt8List(vararg elements: Int): Bytes (source)
static fun encodeUInt8List(elements: MutableList<Int>): Bytes (source)

Encode a list of 8-bit unsigned integers.

Parameters

elements - the integers to write

Exceptions

IllegalArgumentException - if any values are too large to be represented in 8 bits

Return
SSZ encoding in a Bytes value