tuweni / org.apache.tuweni.ssz / SSZ / encodeInt16List

encodeInt16List

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

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

Parameters

elements - Int: the integers to write

Exceptions

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

Return
Bytes!: SSZ encoding in a Bytes value

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

Encode a list of 16-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 16 bits

Return
Bytes!: SSZ encoding in a Bytes value