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 |
StreamingDataInput<S extends StreamingDataInput<S>>
The StreamingDataInput interface represents a data stream for reading in binary data.
|
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 |
ByteStringParser<B extends ByteStringParser<B>>
An interface that provides support for parsing bytes as text.
|
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 |
---|---|
@NotNull StreamingInputStream |
StreamingInputStream.init(StreamingDataInput in)
Initializes this StreamingInputStream instance with a specific StreamingDataInput as the data source.
|
static void |
AppendableUtil.parse8bit(@NotNull StreamingDataInput bytes,
Appendable appendable,
int utflen)
Parses a sequence of 8-bit characters from the given StreamingDataInput and appends them to an Appendable.
|
static void |
BytesUtil.parseUtf8(@NotNull StreamingDataInput in,
Appendable appendable,
int utflen)
Parses a UTF-8 string from a StreamingDataInput and appends it to an Appendable object.
|
static void |
AppendableUtil.read8bitAndAppend(@NotNull StreamingDataInput bytes,
@NotNull StringBuilder appendable,
@NotNull StopCharsTester tester)
Reads an 8-bit character from a StreamingDataInput and appends it to a StringBuilder
until a stop character as defined by the given StopCharsTester is encountered.
|
static long |
BytesUtil.readStopBit(@NotNull StreamingDataInput in)
Reads a variable-length integer from a StreamingDataInput using the stop bit encoding.
|
static void |
AppendableUtil.readUtf8AndAppend(@NotNull StreamingDataInput bytes,
@NotNull Appendable appendable,
@NotNull StopCharsTester tester)
Reads a UTF-8 encoded character from a StreamingDataInput and appends it to an Appendable
until a stop character as defined by the given StopCharsTester is encountered.
|
static void |
AppendableUtil.readUTFAndAppend(@NotNull StreamingDataInput bytes,
@NotNull Appendable appendable,
@NotNull StopCharsTester tester)
Reads an 8-bit character from a StreamingDataInput and appends it to an Appendable
until a stop character as defined by the given StopCharsTester is encountered.
|
Constructor and Description |
---|
StreamingInputStream(StreamingDataInput in)
Constructs a new StreamingInputStream instance with a specific StreamingDataInput as the data source.
|
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 |
---|---|
static <E extends Enum<E>,S extends StreamingDataInput<S>> |
BytesInternal.readEnum(@NotNull StreamingDataInput input,
@NotNull Class<E> eClass) |
Modifier and Type | Method and Description |
---|---|
static void |
BytesInternal.parse8bit(@NotNull StreamingDataInput bytes,
@NotNull Bytes<?> builder,
@NotNull StopCharsTester tester) |
static void |
BytesInternal.parse8bit(@NotNull StreamingDataInput bytes,
@NotNull Bytes<?> builder,
@NotNull StopCharTester tester) |
static void |
BytesInternal.parse8bit(@NotNull StreamingDataInput bytes,
@NotNull StringBuilder builder,
@NotNull StopCharsTester tester) |
static void |
BytesInternal.parse8bit(@NotNull StreamingDataInput bytes,
@NotNull StringBuilder builder,
@NotNull StopCharTester tester) |
static void |
BytesInternal.parse8bit1(@NotNull StreamingDataInput bytes,
@NotNull Appendable appendable,
int utflen) |
static void |
BytesInternal.parse8bit1(@NotNull StreamingDataInput bytes,
@NotNull StringBuilder sb,
int utflen) |
static double |
BytesInternal.parseDouble(@NotNull StreamingDataInput in) |
static long |
BytesInternal.parseFlexibleLong(@NotNull StreamingDataInput in) |
static long |
BytesInternal.parseHexLong(@NotNull StreamingDataInput in) |
static long |
BytesInternal.parseLong(@NotNull StreamingDataInput in) |
static long |
BytesInternal.parseLongDecimal(@NotNull StreamingDataInput in) |
static void |
BytesInternal.parseUtf8(@NotNull StreamingDataInput bytes,
Appendable appendable,
boolean utf,
int length) |
static void |
BytesInternal.parseUtf8(@NotNull StreamingDataInput bytes,
@NotNull Appendable builder,
@NotNull StopCharsTester tester) |
static void |
BytesInternal.parseUtf8(@NotNull StreamingDataInput bytes,
@NotNull Appendable builder,
@NotNull StopCharTester tester) |
static @Nullable String |
BytesInternal.parseUtf8(@NotNull StreamingDataInput bytes,
@NotNull StopCharTester tester) |
static void |
BytesInternal.parseUtf81(@NotNull StreamingDataInput bytes,
@NotNull Appendable appendable,
boolean utf,
int length) |
static @Nullable String |
BytesInternal.read8bit(@NotNull StreamingDataInput in) |
static <E extends Enum<E>,S extends StreamingDataInput<S>> |
BytesInternal.readEnum(@NotNull StreamingDataInput input,
@NotNull Class<E> eClass) |
static void |
BytesInternal.readHistogram(@NotNull StreamingDataInput in,
@NotNull net.openhft.chronicle.core.util.Histogram histogram) |
static long |
BytesInternal.readStopBit(@NotNull StreamingDataInput in) |
static long |
BytesInternal.readStopBit0(@NotNull StreamingDataInput in,
long l) |
static char |
BytesInternal.readStopBitChar(@NotNull StreamingDataInput in) |
static double |
BytesInternal.readStopBitDouble(@NotNull StreamingDataInput in) |
static @Nullable String |
BytesInternal.readUtf8(@NotNull StreamingDataInput in) |
Copyright © 2023. All rights reserved.