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 |
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.
|
Copyright © 2024. All rights reserved.