tuweni / org.apache.tuweni.ssz / SSZWriter / writeUIntList

writeUIntList

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

Write a list of unsigned integers. Note that the elements are native signed ints, but will be interpreted as an unsigned values.

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 writeUIntList(bitLength: Int, elements: MutableList<Int!>!): Unit (source)

Write a list of unsigned integers. Note that the elements are native signed ints, but will be interpreted as an unsigned values.

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