tuweni / org.apache.tuweni.bytes / MutableByteBufferWrappingBytes

MutableByteBufferWrappingBytes

open class MutableByteBufferWrappingBytes : ByteBufferWrappingBytes, MutableBytes (source)

Inherited Properties

EMPTY

static val EMPTY: MutableBytes

The empty value (with 0 bytes).

Functions

copy

open fun copy(): Bytes

mutableSlice

open fun mutableSlice(i: Int, length: Int): MutableBytes

set

open fun set(i: Int, b: Byte): Unit

setInt

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

setLong

open fun setLong(i: Int, value: Long): Unit

Inherited Functions

clear

open fun clear(): Unit

Set all bytes in this value to 0.

decrement

open fun decrement(): MutableBytes

Decrements the value of the bytes by 1, treating the value as big endian. If decrementing underflows the value then all bits flip, i.e. decrementing 0x0000 will return 0xFFFF.

fill

open fun fill(b: Byte): Unit

Fill all the bytes of this value with the specified byte.

increment

open fun increment(): MutableBytes

Increments the value of the bytes by 1, treating the value as big endian. If incrementing overflows the value then all bits flip, i.e. incrementing 0xFFFF will return 0x0000.