tuweni / org.apache.tuweni.bytes / MutableBytes32

MutableBytes32

interface MutableBytes32 : MutableBytes, Bytes32 (source)

A mutable Bytes32, that is a mutable Bytes value of exactly 32 bytes.

Functions

create

Create a new mutable 32 bytes value.

open static fun create(): MutableBytes32!

wrap

Wrap a 32 bytes array as a mutable 32 bytes value.

open static fun wrap(value: ByteArray!): MutableBytes32!

Wrap a the provided array as a MutableBytes32.

open static fun wrap(value: ByteArray!, offset: Int): MutableBytes32!

Wrap a the provided value, which must be of size 32, as a MutableBytes32.

open static fun wrap(value: MutableBytes!): MutableBytes32!

Wrap a slice/sub-part of the provided value as a MutableBytes32.

open static fun wrap(value: MutableBytes!, offset: Int): MutableBytes32!