tuweni / org.apache.tuweni.ssz / SSZ / encodeULongIntList

encodeULongIntList

static fun encodeULongIntList(bitLength: Int, vararg elements: Long): Bytes! (source)

Encode a list of unsigned long integers. Note that the elements are native signed longs, 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 - Long: the integers to write

Exceptions

IllegalArgumentException - if any values are too large for the specified bitLength

Return
Bytes!: SSZ encoding in a Bytes value

static fun encodeULongIntList(bitLength: Int, elements: MutableList<Long!>!): Bytes! (source)

Encode a list of unsigned long integers. Note that the elements are native signed longs, 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<Long!>!: the integers to write

Exceptions

IllegalArgumentException - if any values are too large for the specified bitLength

Return
Bytes!: SSZ encoding in a Bytes value