| Package | Description |
|---|---|
| net.openhft.chronicle.bytes |
The Chronicle Bytes package provides low-level memory access wrappers with functionalities
akin to Java NIO's ByteBuffer.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
StreamingDataOutput<S extends StreamingDataOutput<S>>
StreamingDataOutput is an interface for classes that support writing data to a stream.
|
| 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. |
interface |
BytesOut<U>
This interface represents an output stream for writing data to bytes.
|
interface |
ByteStringAppender<B extends ByteStringAppender<B>>
This interface provides methods for appending different types of data to an underlying buffer.
|
| 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 |
|---|---|
static void |
BytesUtil.appendUtf8(@NotNull StreamingDataOutput out,
@NotNull CharSequence cs)
Writes a CharSequence as a UTF-8 string to a StreamingDataOutput.
|
@NotNull StreamingOutputStream |
StreamingOutputStream.init(StreamingDataOutput sdo)
Initializes this StreamingOutputStream instance with a specific StreamingDataOutput as the data destination.
|
static void |
BytesUtil.writeStopBit(@NotNull StreamingDataOutput out,
long n)
Writes a variable-length integer to a StreamingDataOutput using the stop bit encoding.
|
| Constructor and Description |
|---|
StreamingOutputStream(StreamingDataOutput sdo)
Constructs a new StreamingOutputStream instance with a specific StreamingDataOutput as the data destination.
|
Copyright © 2024. All rights reserved.