tuweni / org.apache.tuweni.bytes / MutableBytes / set

set

abstract fun set(i: Int, b: Byte): Unit (source)

Set a byte in this value.

Parameters

i - Int: The index of the byte to set.

b - Byte: The value to set that byte to.

Exceptions

IndexOutOfBoundsException - if i < 0 or {i >= size()}.

open fun set(offset: Int, bytes: Bytes!): Unit (source)

Set a byte in this value.

Parameters

offset - Int: The offset of the bytes to set.

bytes - Bytes!: The value to set bytes to.

Exceptions

IndexOutOfBoundsException - if i < 0 or {i >= size()}.