tuweni / org.apache.tuweni.bytes / DelegatingBytes

DelegatingBytes

open class DelegatingBytes : AbstractBytes, Bytes (source)

A class that holds and delegates all operations to its inner bytes field.

This class may be used to create more types that represent bytes, but need a different name for business logic.

Functions

copy

open fun copy(): Bytes

get

open fun get(i: Int): Byte

mutableCopy

open fun mutableCopy(): MutableBytes

size

open fun size(): Int

slice

open fun slice(index: Int, length: Int): Bytes

Inherited Functions

equals

open fun equals(other: Any?): Boolean

Compare this value and the provided one for equality.

Two Bytes values are equal is they have contain the exact same bytes.

hashCode

open fun hashCode(): Int

toString

open fun toString(): String