tuweni / org.apache.tuweni.ssz / SSZWriter / writeInt

writeInt

open fun writeInt(value: Int, bitLength: Int): Unit (source)

Write a two's-compliment integer to the output.

Parameters

value - Int: the integer to write

bitLength - Int: the bit length of the integer value

Exceptions

IllegalArgumentException - if the value is too large for the specified bit length