bytes / org.apache.tuweni.bytes

Package org.apache.tuweni.bytes

Types

AbstractBytes

abstract class AbstractBytes : Bytes

An abstract Bytes value that provides implementations of #equals(Object), #hashCode() and #toString().

Bytes

interface Bytes : Comparable<Bytes>

A value made of bytes.

This interface makes no thread-safety guarantee, and a Bytes value is generally not thread safe. However, specific implementations may be thread-safe. For instance, the value returned by #copy is guaranteed to be thread-safe as it is immutable.

Bytes32

interface Bytes32 : Bytes

A Bytes value that is guaranteed to contain exactly 32 bytes.

Bytes48

interface Bytes48 : Bytes

A Bytes value that is guaranteed to contain exactly 48 bytes.

DelegatingBytes

open class DelegatingBytes : AbstractBytes, Bytes

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.

DelegatingBytes32

open class DelegatingBytes32 : AbstractBytes, Bytes32

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

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

DelegatingBytes48

open class DelegatingBytes48 : AbstractBytes, Bytes48

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

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

MutableByteBufferWrappingBytes

open class MutableByteBufferWrappingBytes : ByteBufferWrappingBytes, MutableBytes

MutableBytes

interface MutableBytes : Bytes

A mutable Bytes value.

MutableBytes32

interface MutableBytes32 : MutableBytes, Bytes32

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

MutableBytes48

interface MutableBytes48 : MutableBytes, Bytes48

A mutable Bytes48, that is a mutable Bytes value of exactly 48 bytes.