tuweni / org.apache.tuweni.bytes

Package org.apache.tuweni.bytes

Classes and utilities for working with byte arrays.

These classes are included in the complete Tuweni distribution, or separately when using the gradle dependency org.apache.tuweni:tuweni-bytes (tuweni-bytes.jar).

Types

AbstractBytes

abstract class AbstractBytes : Bytes

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

Bytes

interface 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.

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.