tuweni / org.apache.tuweni.ssz / SSZ / encodeInt8List

encodeInt8List

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

Encode a list of 8-bit two's compliment 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