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.
|
Modifier and Type | Interface and Description |
---|---|
interface |
RandomDataOutput<R extends RandomDataOutput<R>>
The
RandomDataOutput interface provides a set of methods for writing data to a buffer
or similar data structure at arbitrary positions (offsets). |
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 |
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 |
NoBytesStore
Deprecated.
from the public API for removal in x.25. Use
BytesStore.empty() } instead. |
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 |
---|---|
@NotNull RandomDataOutput |
NoBytesStore.write(long offsetInRDO,
byte[] byteArray,
int offset,
int length)
Deprecated.
|
@NotNull RandomDataOutput |
NoBytesStore.write(long writeOffset,
@NotNull RandomDataInput bytes,
long readOffset,
long length)
Deprecated.
|
@NotNull RandomDataOutput |
NoBytesStore.writeByte(long offset,
byte i8)
Deprecated.
|
@NotNull RandomDataOutput |
NoBytesStore.writeDouble(long offset,
double d)
Deprecated.
|
@NotNull RandomDataOutput |
NoBytesStore.writeFloat(long offset,
float d)
Deprecated.
|
@NotNull RandomDataOutput |
NoBytesStore.writeInt(long offset,
int i)
Deprecated.
|
@NotNull RandomDataOutput |
NoBytesStore.writeLong(long offset,
long i)
Deprecated.
|
@NotNull RandomDataOutput |
NoBytesStore.writeOrderedInt(long offset,
int i)
Deprecated.
|
@NotNull RandomDataOutput |
NoBytesStore.writeOrderedLong(long offset,
long i)
Deprecated.
|
@NotNull RandomDataOutput |
NoBytesStore.writeShort(long offset,
short i)
Deprecated.
|
@NotNull RandomDataOutput |
NoBytesStore.writeVolatileByte(long offset,
byte i8)
Deprecated.
|
@NotNull RandomDataOutput |
NoBytesStore.writeVolatileInt(long offset,
int i32)
Deprecated.
|
@NotNull RandomDataOutput |
NoBytesStore.writeVolatileLong(long offset,
long i64)
Deprecated.
|
@NotNull RandomDataOutput |
NoBytesStore.writeVolatileShort(long offset,
short i16)
Deprecated.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractBytesStore<B extends BytesStore<B,U>,U>
Abstract BytesStore
|
class |
ChunkedMappedBytes
Bytes to wrap memory mapped data.
|
class |
CommonMappedBytes
Bytes to wrap memory mapped data.
|
class |
EmbeddedBytes<U> |
class |
HeapBytesStore<U>
Wrapper for Heap ByteBuffers and arrays.
|
class |
NativeBytesStore<U> |
class |
SingleMappedBytes
A class that extends the
CommonMappedBytes to provide a mechanism to wrap memory-mapped data. |
Modifier and Type | Method and Description |
---|---|
@NotNull RandomDataOutput |
NoBytesStore.write(long offsetInRDO,
byte[] byteArray,
int offset,
int length) |
@NotNull RandomDataOutput |
NoBytesStore.write(long writeOffset,
@NotNull RandomDataInput bytes,
long readOffset,
long length) |
@NotNull RandomDataOutput |
NoBytesStore.writeByte(long offset,
byte i8) |
@NotNull RandomDataOutput |
NoBytesStore.writeDouble(long offset,
double d) |
@NotNull RandomDataOutput |
NoBytesStore.writeFloat(long offset,
float d) |
@NotNull RandomDataOutput |
NoBytesStore.writeInt(long offset,
int i) |
@NotNull RandomDataOutput |
NoBytesStore.writeLong(long offset,
long i) |
@NotNull RandomDataOutput |
NoBytesStore.writeOrderedInt(long offset,
int i) |
@NotNull RandomDataOutput |
NoBytesStore.writeOrderedLong(long offset,
long i) |
@NotNull RandomDataOutput |
NoBytesStore.writeShort(long offset,
short i) |
@NotNull RandomDataOutput |
NoBytesStore.writeVolatileByte(long offset,
byte i8) |
@NotNull RandomDataOutput |
NoBytesStore.writeVolatileInt(long offset,
int i32) |
@NotNull RandomDataOutput |
NoBytesStore.writeVolatileLong(long offset,
long i64) |
@NotNull RandomDataOutput |
NoBytesStore.writeVolatileShort(long offset,
short i16) |
Modifier and Type | Method and Description |
---|---|
static void |
BytesInternal.append(@NotNull RandomDataOutput out,
long offset,
long num,
int digits)
The length of the number must be fixed otherwise short numbers will not overwrite longer
numbers
|
static void |
BytesInternal.append8bit(long offsetInRDO,
RandomDataOutput bytes,
@NotNull CharSequence str,
int offset,
int length) |
static void |
BytesInternal.appendDecimal(@NotNull RandomDataOutput out,
long num,
long offset,
int decimalPlaces,
int width)
Appends given long value with given decimalPlaces to RandomDataOutput out
|
static long |
BytesInternal.appendUtf8(@NotNull RandomDataOutput out,
long outOffset,
@NotNull CharSequence str,
int strOffset,
int length) |
static long |
BytesInternal.appendUtf8Char(@NotNull RandomDataOutput out,
long offset,
int c) |
static @NotNull Bytes<?> |
BytesInternal.asBytes(@NotNull RandomDataOutput bytes,
long position,
long limit) |
static long |
BytesInternal.writeStopBit(@NotNull RandomDataOutput out,
long offset,
long n) |
static long |
BytesInternal.writeUtf8(@NotNull RandomDataOutput out,
long writeOffset,
@Nullable CharSequence str) |
static long |
BytesInternal.writeUtf8(@NotNull RandomDataOutput out,
long offset,
@Nullable CharSequence str,
int maxUtf8Len) |
Copyright © 2023. All rights reserved.