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 |
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 |
BytesIn<U>
Defines an interface for reading bytes.
|
interface |
BytesStore<B extends BytesStore<B,U>,U>
This interface represents an immutable reference to a segment of bytes with a fixed range.
|
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 |
MappedBytesStore
A BytesStore implementation that wraps memory-mapped data.
|
class |
NativeBytes<U>
NativeBytes is a subclass of VanillaBytes which can wrap either a ByteBuffer or malloc'ed memory.
|
class |
OnHeapBytes |
class |
PointerBytesStore
A BytesStore that points to arbitrary memory.
|
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 boolean |
BytesUtil.bytesEqual(@Nullable CharSequence cs,
@NotNull RandomDataInput bs,
long offset,
int length)
Compares a CharSequence with bytes from a RandomDataInput object to check if they are equal.
|
static boolean |
BytesUtil.bytesEqual(@NotNull RandomDataInput a,
long offset,
@NotNull RandomDataInput second,
long secondOffset,
long len)
Compares bytes from two RandomDataInput objects to check if they are equal.
|
static boolean |
BytesUtil.bytesEqual(@NotNull RandomDataInput a,
long offset,
@NotNull RandomDataInput second,
long secondOffset,
long len)
Compares bytes from two RandomDataInput objects to check if they are equal.
|
protected void |
VanillaBytes.optimisedWrite(@NotNull RandomDataInput bytes,
long offset,
long length) |
static String |
BytesUtil.toDebugString(@NotNull RandomDataInput bytes,
long start,
long maxLength)
Returns a debug string representation of a portion of a RandomDataInput object.
|
@NotNull MappedBytesStore |
MappedBytesStore.write(long writeOffset,
@NotNull RandomDataInput bytes,
long readOffset,
long length) |
R |
RandomDataOutput.write(long writeOffset,
@NotNull RandomDataInput bytes,
long readOffset,
long length)
Copies a segment from the provided RandomDataInput into this data output.
|
@NotNull Bytes<Void> |
HexDumpBytes.write(long writeOffset,
@NotNull RandomDataInput bytes,
long readOffset,
long length) |
@NotNull Bytes<U> |
UncheckedNativeBytes.write(long writeOffset,
@NotNull RandomDataInput bytes,
long readOffset,
long length) |
@NotNull Bytes<U> |
AbstractBytes.write(long writeOffset,
@NotNull RandomDataInput bytes,
long readOffset,
long length) |
default S |
StreamingDataOutput.write(@NotNull RandomDataInput bytes)
Deprecated.
|
@NotNull Bytes<Void> |
HexDumpBytes.write(@NotNull RandomDataInput bytes) |
@NotNull Bytes<U> |
UncheckedNativeBytes.write(@NotNull RandomDataInput bytes) |
@NotNull Bytes<U> |
AbstractBytes.write(@NotNull RandomDataInput bytes) |
default S |
StreamingDataOutput.write(@NotNull RandomDataInput bytes,
long readOffset,
long length)
Deprecated.
|
@NotNull Bytes<U> |
VanillaBytes.write(@NotNull RandomDataInput bytes,
long offset,
long length) |
@NotNull Bytes<Void> |
HexDumpBytes.write(@NotNull RandomDataInput bytes,
long offset,
long length) |
@NotNull Bytes<U> |
UncheckedNativeBytes.write(@NotNull RandomDataInput bytes,
long offset,
long length) |
@NotNull Bytes<U> |
UncheckedBytes.write(@NotNull RandomDataInput bytes,
long offset,
long length) |
void |
MappedBytesStore.write0(long offsetInRDO,
@NotNull RandomDataInput bytes,
long offset,
long length) |
default void |
StreamingDataOutput.writeWithLength(@NotNull RandomDataInput bytes)
Writes data from the provided RandomDataInput into this Bytes object with prefixed length.
|
void |
HexDumpBytes.writeWithLength(@NotNull RandomDataInput bytes) |
Modifier and Type | Class and Description |
---|---|
class |
net.openhft.chronicle.bytes.internal.AbstractBytesStore<B extends BytesStore<B,U>,U>
Abstract BytesStore
|
class |
net.openhft.chronicle.bytes.internal.NativeBytesStore<U> |
Copyright © 2024. All rights reserved.