tuweni / org.apache.tuweni.ssz / SSZWriter / writeIntList

writeIntList

open fun writeIntList(bitLength: Int, vararg elements: Int): Unit (source)

Write a list of two's compliment integers.

Parameters

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

elements - Int: the integers to write as a list

Exceptions

IllegalArgumentException - if any values are too large for the specified bit length

open fun writeIntList(bitLength: Int, elements: MutableList<Int!>!): Unit (source)

Write a list of two's compliment integers.

Parameters

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

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

Exceptions

IllegalArgumentException - if any values are too large for the specified bit length