| 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.internal |
This package and any and all sub-packages contains strictly internal classes for this Chronicle library.
|
| 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 |
|---|---|
void |
BytesParselet.accept(long messageType,
BytesIn<?> in)
This method is invoked with a message type and an input stream of bytes.
|
Object[] |
MethodEncoder.decode(Object[] lastObjects,
BytesIn<?> in)
Decodes a method call from a
BytesIn object into an array of objects. |
default void |
BytesMarshallable.readMarshallable(BytesIn<?> bytes)
Reads the state of this object from the bytes.
|
void |
ReadBytesMarshallable.readMarshallable(BytesIn<?> bytes)
Reads data from the provided
BytesIn object. |
void |
BytesMarshaller.readMarshallable(ReadBytesMarshallable t,
BytesIn<?> in)
Reads the state of the given ReadBytesMarshallable object from the specified BytesIn.
|
static void |
BytesUtil.readMarshallable(@NotNull ReadBytesMarshallable marshallable,
BytesIn<?> bytes)
Reads a Marshallable object from a BytesIn object.
|
| Constructor and Description |
|---|
BytesMethodReader(BytesIn<?> in,
BytesParselet defaultParselet,
MethodEncoderLookup methodEncoderLookup,
Object[] objects)
Constructor for the BytesMethodReader class.
|
BytesMethodReaderBuilder(BytesIn<?> in)
Constructor for BytesMethodReaderBuilder.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ChunkedMappedBytes
Bytes to wrap memory mapped data.
|
class |
CommonMappedBytes
Bytes to wrap memory mapped data.
|
class |
EmbeddedBytes<U> |
class |
SingleMappedBytes
A class that extends the
CommonMappedBytes to provide a mechanism to wrap memory-mapped data. |
| Modifier and Type | Method and Description |
|---|---|
void |
BinaryIntArrayReference.readMarshallable(BytesIn<?> bytes)
Reads and deserializes data from the input stream.
|
void |
BinaryLongArrayReference.readMarshallable(BytesIn<?> 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.
|
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 © 2023. All rights reserved.