@FunctionalInterface public interface OffsetFormat
This interface provides a standardized way to append offset information to Bytes,
allowing different implementations to provide different formatting strategies.
Implementations should define the append(long, Bytes) method to handle the formatting and appending operation.
| Modifier and Type | Method and Description |
|---|---|
void |
append(long offset,
Bytes<?> bytes)
Appends the given offset to the provided
Bytes instance. |
void append(long offset,
Bytes<?> bytes)
Bytes instance.
This method allows the implementation to decide how the offset information should be formatted
and appended to the Bytes instance.
offset - the offset to be appendedbytes - the Bytes instance where the offset will be appendedIllegalArgumentException - if the offset is negativeCopyright © 2024. All rights reserved.