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>2.4.1</version>
</dependency>

Or using Gradle:

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

The bytes library revolves mainly around the Bytes interface.

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