| Package | Description |
|---|---|
| net.openhft.chronicle.bytes |
The Chronicle Bytes package provides low-level memory access wrappers with functionalities
akin to Java NIO's ByteBuffer.
|
| net.openhft.chronicle.bytes.ref |
Provides classes and interfaces for handling references to arrays of
various primitive types with byte representation.
|
| net.openhft.chronicle.bytes.util |
Provides utility classes and interfaces for Chronicle Bytes.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Bytes<U>
The
Bytes class is a versatile container for raw byte data, providing rich functionality to read and write
data in various formats including integers, longs, floating-point values, strings, and more. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractBytes<U>
Abstract representation of Bytes.
|
class |
GuardedNativeBytes<U>
This class extends the
NativeBytes class and provides an additional layer of safety by tracking the raw primitives written to the byte buffer. |
class |
HexDumpBytes
A class that implements the
Bytes interface for generating a hex dump of byte data. |
class |
MappedBytes
A specialized implementation of
AbstractBytes that wraps memory-mapped data for efficient random file access. |
class |
NativeBytes<U>
NativeBytes is a subclass of VanillaBytes which can wrap either a ByteBuffer or malloc'ed memory.
|
class |
OnHeapBytes |
class |
SubBytes<U>
A
SubBytes object represents a subsection of a BytesStore from a given start index up to a specified capacity. |
class |
UncheckedBytes<U>
An optimized extension of AbstractBytes that doesn't perform any bounds checking
for read and write operations.
|
class |
UncheckedNativeBytes<U>
An optimized extension of AbstractBytes that performs unchecked read and write operations
on a Bytes instance that is backed by native memory.
|
class |
VanillaBytes<U>
A simple Bytes implementation that is non-elastic.
|
| 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)
Retrieves and removes the head of this queue, or returns
false if this queue is
empty. |
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)
Retrieves and removes the head of this queue, or returns
null if this queue is
empty. |
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)
Perform a set of actions within a temporary bounds mode.
|
default void |
BytesMarshallable.writeMarshallable(BytesOut<?> bytes)
Writes the state of this object to the bytes.
|
void |
WriteBytesMarshallable.writeMarshallable(BytesOut<?> bytes)
Serializes this object to the provided Bytes instance.
|
void |
BytesMarshaller.writeMarshallable(WriteBytesMarshallable t,
BytesOut<?> out)
Writes the state of the given WriteBytesMarshallable object to the specified BytesOut.
|
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)
Create a new invocation handler.
|
| 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 the input to the output using the implementing compression algorithm.
|
abstract long |
BinaryLengthLength.initialise(@NotNull BytesOut<?> bytes)
Initialises the binary data with the appropriate length encoding.
|
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)
Uncompresses the input compressed data into the output uncompressed data using the specified algorithm.
|
Copyright © 2024. All rights reserved.