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

encodeInt8List

static fun encodeInt8List(vararg elements: Int): Bytes! (source)

Encode a list of 8-bit two's compliment integers.

Parameters

elements - Int: the integers to write

Exceptions

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

Return
Bytes!: SSZ encoding in a Bytes value

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

Encode a list of 8-bit two's compliment integers.

Parameters

elements - MutableList<Int!>!: the integers to write

Exceptions

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

Return
Bytes!: SSZ encoding in a Bytes value