tuweni / org.apache.tuweni.bytes / MutableBytes / setInt

setInt

open fun setInt(i: Int, value: Int): Unit (source)

Set the 4 bytes starting at the specified index to the specified integer value.

Parameters

i - Int: The index, which must less than or equal to size() - 4.

value - Int: The integer value.

Exceptions

IndexOutOfBoundsException - if i < 0 or i > size() - 4.