tuweni / org.apache.tuweni.ssz / SSZWriter / writeUInt

writeUInt

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

Write an unsigned integer to the output. Note that the argument value is a native signed int but will be interpreted as an unsigned value.

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