Apache Tuweni provides support for manipulating bytes.

To get started, install the bytes library.

With Maven:

<dependency>
  <groupId>org.apache.tuweni</groupId>
  <artifactId>bytes</artifactId>
  <version>1.3.0</version>
</dependency>

Or using Gradle:

implementation("org.apache.tuweni:bytes:1.3.0")

The bytes library revolves mainly around the Bytes interface.

This tutorial goes over the main uses of Bytes, from creating them to manipulating them.