| Package | Description |
|---|---|
| net.openhft.chronicle.bytes | |
| net.openhft.chronicle.bytes.ref | |
| net.openhft.chronicle.bytes.util |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Bytes<U>
Mutable buffer for raw byte data with separate 63-bit read and write cursors.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractBytes<U>
Provides a base implementation of
Bytes with cursor management,
optional bounds checking and default text formatting support. |
class |
GuardedNativeBytes<U>
Debugging wrapper that prefixes each primitive written with a type code and checks it on reads.
|
class |
HexDumpBytes
Bytes implementation that records all writes and produces a formatted hexadecimal dump of the data. |
class |
MappedBytes
A specialised
Bytes implementation backed by a memory-mapped file. |
class |
NativeBytes<U>
VanillaBytes backed by native (off heap) memory or a direct
ByteBuffer. |
class |
OnHeapBytes
VanillaBytes backed by an on heap byte[]. |
class |
SubBytes<U>
Represents a fixed size view over a region of another
BytesStore. |
class |
UncheckedBytes<U>
A wrapper around another
Bytes instance that bypasses most bounds
checks on read and write operations. |
class |
UncheckedNativeBytes<U>
Provides unchecked access to a native
BytesStore. |
class |
VanillaBytes<U>
Base implementation of
Bytes backed by a fixed-capacity
BytesStore. |
| Modifier and Type | Method and Description |
|---|---|
BytesOut<Void> |
HexDumpBytes.adjustHexDumpIndentation(int n) |
BytesOut<U> |
GuardedNativeBytes.writeHexDumpDescription(CharSequence comment) |
| Modifier and Type | Method and Description |
|---|---|
void |
MethodEncoder.encode(Object[] objects,
BytesOut<?> out)
Encodes a method call, represented by an array of objects, into a
BytesOut object. |
boolean |
BytesConsumer.read(BytesOut<?> bytes)
Attempts to pull data from the source into
bytes. |
boolean |
RingBufferReader.read(BytesOut<?> bytes)
A convenience method that reads data from the Ring Buffer by internally calling both
RingBufferReader.beforeRead(Bytes) and RingBufferReader.afterRead(long). |
boolean |
BytesRingBuffer.read(@NotNull BytesOut<?> using)
Reads the next available message into
using. |
void |
HexDumpBytes.readWithLength(long length,
@NotNull BytesOut<?> bytesOut) |
default void |
Bytes.readWithLength(long length,
@NotNull BytesOut<?> bytesOut)
Writes the specified number of bytes from this Bytes object into the provided
bytesOut. |
void |
HexDumpBytes.readWithLength0(long length,
@NotNull net.openhft.chronicle.core.util.ThrowingConsumerNonCapturing<Bytes<Void>,net.openhft.chronicle.core.io.IORuntimeException,BytesOut> bytesConsumer,
StringBuilder sb,
BytesOut<?> toBytes) |
default void |
StreamingDataInput.readWithLength0(long length,
@NotNull net.openhft.chronicle.core.util.ThrowingConsumerNonCapturing<S,net.openhft.chronicle.core.io.IORuntimeException,BytesOut> bytesConsumer,
StringBuilder sb,
BytesOut<?> toBytes)
Temporarily restricts the
RandomCommon.readLimit() to readPosition() + length,
invokes bytesConsumer, then restores the original limit and
advances the read position by length. |
default void |
BytesMarshallable.writeMarshallable(BytesOut<?> bytes)
Writes this object's state to
bytes using a custom binary format. |
void |
WriteBytesMarshallable.writeMarshallable(BytesOut<?> bytes)
Writes this object's state to
bytes using a custom binary format. |
void |
BytesMarshaller.writeMarshallable(WriteBytesMarshallable t,
BytesOut<?> out)
Writes all fields of
t to out using reflection. |
static void |
BytesUtil.writeMarshallable(@NotNull WriteBytesMarshallable marshallable,
BytesOut<?> bytes)
Writes a Marshallable object to a BytesOut object.
|
| Constructor and Description |
|---|
BinaryBytesMethodWriterInvocationHandler(Class<?> tClass,
Function<Method,MethodEncoder> methodToId,
BytesOut<?> out)
Creates an instance for the supplied interface.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BinaryIntArrayReference.writeMarshallable(BytesOut<?> bytes)
Serializes and writes data to the output stream.
|
void |
BinaryLongArrayReference.writeMarshallable(BytesOut<?> bytes) |
| Modifier and Type | Method and Description |
|---|---|
default void |
Compression.compress(@NotNull BytesIn<?> from,
@NotNull BytesOut<?> to)
Compresses data from
from to to using this implementation's
algorithm. |
abstract long |
BinaryLengthLength.initialise(@NotNull BytesOut<?> bytes)
Writes the identifying code and reserves space for the length field.
|
default void |
Compression.uncompress(@NotNull BytesIn<?> from,
@NotNull BytesOut<?> to)
Uncompresses data from the input to the output using the implementing uncompression algorithm.
|
static void |
Compression.uncompress(@NotNull CharSequence cs,
@NotNull BytesIn<?> from,
@NotNull BytesOut<?> to)
Decompresses data using the named algorithm.
|
Copyright © 2026 Chronicle Software Ltd. All rights reserved.