| 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.
|
| net.openhft.chronicle.bytes.pool |
This package provides a pool for managing
Bytes instances. |
| net.openhft.chronicle.bytes.ref |
Provides classes and interfaces for handling references to arrays of
various primitive types with byte representation.
|
| net.openhft.chronicle.bytes.util |
Provides utility classes and interfaces for Chronicle Bytes.
|
| 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 | Field and Description |
|---|---|
static @NotNull Bytes<?> |
NoBytesStore.NO_BYTES
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
@NotNull Bytes<?> |
MappedFile.acquireBytesForRead(net.openhft.chronicle.core.io.ReferenceOwner owner,
long position)
Acquires bytes for read at the specified position, without the need to release the BytesStore.
|
@NotNull Bytes<?> |
MappedFile.acquireBytesForWrite(net.openhft.chronicle.core.io.ReferenceOwner owner,
long position)
Acquires bytes for write at the specified position.
|
@NotNull Bytes<Void> |
HexDumpBytes.append(@NotNull BigDecimal bigDecimal) |
@NotNull Bytes<Void> |
HexDumpBytes.append(boolean flag) |
@NotNull Bytes<Void> |
HexDumpBytes.append(char ch) |
@NotNull Bytes<Void> |
HexDumpBytes.append(@NotNull CharSequence cs) |
@NotNull Bytes<Void> |
HexDumpBytes.append(@NotNull CharSequence cs,
int start,
int end) |
@NotNull Bytes<Void> |
HexDumpBytes.append(double d) |
@NotNull Bytes<Void> |
HexDumpBytes.append(double d,
int decimalPlaces) |
@NotNull Bytes<U> |
AbstractBytes.append(double d,
int decimalPlaces) |
@NotNull Bytes<Void> |
HexDumpBytes.append(float f) |
@NotNull Bytes<U> |
AbstractBytes.append(float f)
Appends the string representation of the given float value to the bytes.
|
@NotNull Bytes<Void> |
HexDumpBytes.append(int value) |
@NotNull Bytes<U> |
UncheckedNativeBytes.append(int value) |
@NotNull Bytes<U> |
AbstractBytes.append(int value) |
@NotNull Bytes<Void> |
HexDumpBytes.append(long value) |
@NotNull Bytes<U> |
UncheckedNativeBytes.append(long value) |
@NotNull Bytes<U> |
AbstractBytes.append(long value) |
@NotNull Bytes<U> |
VanillaBytes.append8bit(@NotNull BytesStore bs) |
Bytes<Void> |
HexDumpBytes.append8bit(@NotNull BytesStore bs) |
Bytes<Void> |
HexDumpBytes.append8bit(@NotNull BytesStore bs,
long start,
long end) |
@NotNull Bytes<U> |
VanillaBytes.append8bit(@NotNull CharSequence cs) |
@NotNull Bytes<Void> |
HexDumpBytes.append8bit(@NotNull CharSequence cs) |
@NotNull Bytes<U> |
UncheckedNativeBytes.append8bit(@NotNull CharSequence cs) |
@NotNull Bytes<U> |
UncheckedBytes.append8bit(@NotNull CharSequence cs) |
Bytes<Void> |
HexDumpBytes.append8bit(@NotNull CharSequence cs,
int start,
int end) |
@NotNull Bytes<U> |
VanillaBytes.append8bit(@NotNull String cs) |
Bytes<Void> |
HexDumpBytes.append8bit(@NotNull String cs) |
protected @NotNull Bytes<U> |
VanillaBytes.append8bit0(@NotNull CharSequence cs) |
@NotNull Bytes<Void> |
HexDumpBytes.appendBase(long value,
int base) |
@NotNull Bytes<Void> |
HexDumpBytes.appendBase16(long value) |
@NotNull Bytes<Void> |
HexDumpBytes.appendBase16(long value,
int minDigits) |
@NotNull Bytes<Void> |
HexDumpBytes.appendDateMillis(long dateInMillis) |
@NotNull Bytes<Void> |
HexDumpBytes.appendDecimal(long value,
int decimalPlaces) |
@NotNull Bytes<Void> |
HexDumpBytes.appendTimeMillis(long timeOfDayInMillis) |
@NotNull Bytes<U> |
VanillaBytes.appendUtf8(char[] chars,
int offset,
int length) |
@NotNull Bytes<U> |
UncheckedNativeBytes.appendUtf8(char[] chars,
int offset,
int length) |
@NotNull Bytes<U> |
UncheckedBytes.appendUtf8(char[] chars,
int offset,
int length) |
Bytes<?> |
BytesContext.bytes()
Retrieves the bytes to be written.
|
@NotNull Bytes<Void> |
MappedBytesStore.bytesForRead() |
@NotNull Bytes<U> |
VanillaBytes.bytesForRead() |
@NotNull Bytes<?> |
NoBytesStore.bytesForRead()
Deprecated.
|
@NotNull Bytes<Void> |
MappedBytes.bytesForRead()
Provides a bytes object for read operations.
|
default @NotNull Bytes<U> |
BytesStore.bytesForRead()
Returns a Bytes that wraps this ByteStore from the
start to the realCapacity. |
default @NotNull Bytes<U> |
Bytes.bytesForRead()
Creates and returns a new slice of this Bytes object with its start position set to the current
read position and its capacity determined by the current limit.
|
@NotNull Bytes<?> |
NoBytesStore.bytesForWrite()
Deprecated.
|
@NotNull Bytes<Void> |
MappedBytes.bytesForWrite()
Provides a bytes object for write operations.
|
default @NotNull Bytes<U> |
BytesStore.bytesForWrite()
Returns a Bytes that wraps this ByteStore from the
start to the realCapacity. |
default @NotNull Bytes<U> |
Bytes.bytesForWrite()
Creates and returns a Bytes object that wraps the bytesStore of this Bytes object,
ranging from the
start position to the realCapacity. |
@NotNull Bytes<Void> |
HexDumpBytes.clear() |
@NotNull Bytes<U> |
UncheckedNativeBytes.clear() |
@NotNull Bytes<U> |
Bytes.clear()
Clears the content of this Bytes object and resets its state.
|
@NotNull Bytes<U> |
AbstractBytes.clear() |
@NotNull Bytes<Void> |
HexDumpBytes.clearAndPad(long length) |
@NotNull Bytes<U> |
UncheckedNativeBytes.clearAndPad(long length) |
@NotNull Bytes<U> |
AbstractBytes.clearAndPad(long length) |
@NotNull Bytes<Void> |
HexDumpBytes.compact() |
@NotNull Bytes<U> |
UncheckedNativeBytes.compact() |
@NotNull Bytes<U> |
Bytes.compact()
Compacts this Bytes object by moving the readPosition() to the start(),
adjusting the readLimit()/writePosition() appropriately so that the readRemaining() is unchanged.
|
@NotNull Bytes<U> |
AbstractBytes.compact() |
Bytes<Void> |
HexDumpBytes.decimaliser(Decimaliser decimaliser) |
Bytes<U> |
UncheckedNativeBytes.decimaliser(Decimaliser decimaliser) |
Bytes<U> |
AbstractBytes.decimaliser(Decimaliser decimaliser) |
static @NotNull Bytes<byte[]> |
Bytes.directFrom(@NotNull String text)
Constructs and returns a new Bytes instance which contains the provided
text encoded in ISO-8859-1. |
static @NotNull Bytes<ByteBuffer> |
Bytes.elasticByteBuffer()
Creates and returns a new elastic wrapper for a direct (off-heap) ByteBuffer with a default capacity,
which can be resized as needed.
|
static @NotNull Bytes<ByteBuffer> |
Bytes.elasticByteBuffer(int initialCapacity)
Creates and returns a new elastic wrapper for a direct (off-heap) ByteBuffer with
the given
initialCapacity which will be resized as required. |
static @NotNull Bytes<ByteBuffer> |
Bytes.elasticByteBuffer(int initialCapacity,
int maxCapacity)
Creates and returns a new elastic wrapper for a direct (off-heap) ByteBuffer with
the given
initialCapacity which will be resized as required up
to the given maxCapacity. |
static @NotNull Bytes<ByteBuffer> |
Bytes.elasticHeapByteBuffer()
Creates and returns a new elastic wrapper for a heap ByteBuffer with a default
initialCapacity
of 128 bytes, that can dynamically resize as required. |
static @NotNull Bytes<ByteBuffer> |
Bytes.elasticHeapByteBuffer(int initialCapacity)
Creates and returns a new elastic wrapper for a heap ByteBuffer, with the provided
initialCapacity,
that can dynamically resize as required. |
static Bytes<?> |
Bytes.empty()
Creates and returns an empty, fixed-size, immutable object.
|
static <T> Bytes<T> |
Bytes.forFieldGroup(T object,
@NotNull String groupName)
Creates and returns a new Bytes view that maps to a group of fields within the provided
object. |
Bytes<Void> |
HexDumpBytes.fpAppend0(boolean append0) |
Bytes<U> |
UncheckedNativeBytes.fpAppend0(boolean append0) |
Bytes<U> |
AbstractBytes.fpAppend0(boolean append0) |
static @NotNull Bytes<byte[]> |
Bytes.from(@NotNull CharSequence text)
Constructs and returns a new Bytes instance which contains the provided
text encoded in ISO-8859-1. |
static @NotNull Bytes<byte[]> |
Bytes.from(@NotNull String text)
Creates and returns a new object containing the given
text encoded in ISO-8859-1 character set. |
static Bytes<Void> |
Bytes.fromDirect(@NotNull CharSequence text)
Constructs and returns a new Bytes instance which contains the provided
text encoded in ISO-8859-1. |
static @NotNull Bytes<?> |
Bytes.fromHexString(@NotNull String s)
Converts a hexadecimal string, generated by one of the
toHexString methods, back into a Bytes object. |
@NotNull Bytes<Void> |
HexDumpBytes.prewrite(byte[] bytes) |
@NotNull Bytes<U> |
UncheckedNativeBytes.prewrite(@NotNull byte[] bytes) |
@NotNull Bytes<U> |
AbstractBytes.prewrite(byte[] bytes) |
@NotNull Bytes<Void> |
HexDumpBytes.prewrite(BytesStore bytes) |
@NotNull Bytes<U> |
UncheckedNativeBytes.prewrite(@NotNull BytesStore bytes) |
@NotNull Bytes<U> |
AbstractBytes.prewrite(@NotNull BytesStore bytes) |
@NotNull Bytes<Void> |
HexDumpBytes.prewriteByte(byte b) |
@NotNull Bytes<U> |
UncheckedNativeBytes.prewriteByte(byte i8) |
@NotNull Bytes<U> |
AbstractBytes.prewriteByte(byte i8) |
@NotNull Bytes<Void> |
HexDumpBytes.prewriteInt(int i) |
@NotNull Bytes<U> |
UncheckedNativeBytes.prewriteInt(int i) |
@NotNull Bytes<U> |
AbstractBytes.prewriteInt(int i) |
@NotNull Bytes<Void> |
HexDumpBytes.prewriteLong(long l) |
@NotNull Bytes<U> |
UncheckedNativeBytes.prewriteLong(long i64) |
@NotNull Bytes<U> |
AbstractBytes.prewriteLong(long l) |
@NotNull Bytes<Void> |
HexDumpBytes.prewriteShort(short i) |
@NotNull Bytes<U> |
UncheckedNativeBytes.prewriteShort(short i16) |
@NotNull Bytes<U> |
AbstractBytes.prewriteShort(short i) |
Bytes<U> |
GuardedNativeBytes.rawWriteByte(byte i8) |
Bytes<U> |
UncheckedNativeBytes.rawWriteByte(byte i8) |
Bytes<U> |
GuardedNativeBytes.rawWriteInt(int i) |
static Bytes<?> |
BytesUtil.readFile(@NotNull String name)
Reads the content of a file specified by name into a Bytes object.
|
@NotNull Bytes<Void> |
HexDumpBytes.readLimit(long limit) |
@NotNull Bytes<U> |
UncheckedNativeBytes.readLimit(long limit) |
@NotNull Bytes<U> |
UncheckedBytes.readLimit(long limit) |
@NotNull Bytes<U> |
AbstractBytes.readLimit(long limit) |
@NotNull Bytes<Void> |
HexDumpBytes.readPosition(long position) |
@NotNull Bytes<U> |
UncheckedNativeBytes.readPosition(long position) |
@NotNull Bytes<U> |
UncheckedBytes.readPosition(long position) |
@NotNull Bytes<U> |
AbstractBytes.readPosition(long position) |
@NotNull Bytes<Void> |
HexDumpBytes.readPositionRemaining(long position,
long remaining) |
@NotNull Bytes<Void> |
HexDumpBytes.readPositionUnlimited(long position) |
@NotNull Bytes<Void> |
HexDumpBytes.readSkip(long bytesToSkip) |
@NotNull Bytes<U> |
UncheckedNativeBytes.readSkip(long bytesToSkip) |
@NotNull Bytes<U> |
UncheckedBytes.readSkip(long bytesToSkip) |
@NotNull Bytes<U> |
AbstractBytes.readSkip(long bytesToSkip) |
@NotNull Bytes<U> |
UncheckedNativeBytes.unchecked(boolean unchecked) |
@NotNull Bytes<U> |
UncheckedBytes.unchecked(boolean unchecked) |
default @NotNull Bytes<U> |
Bytes.unchecked(boolean unchecked)
Creates and returns a new Bytes which is optionally unchecked as indicated by the provided
unchecked. |
static Bytes<byte[]> |
Bytes.valueOf(String text)
A reflection-friendly alias for the
from(String) method. |
static @NotNull Bytes<byte[]> |
Bytes.wrapForRead(byte[] byteArray)
Creates and returns a new Bytes instance that wraps the provided
byteArray. |
static @NotNull Bytes<ByteBuffer> |
Bytes.wrapForRead(@NotNull ByteBuffer byteBuffer)
Creates and returns a new Bytes instance that wraps the provided
byteBuffer. |
static @NotNull Bytes<byte[]> |
Bytes.wrapForWrite(byte[] byteArray)
Creates and returns a new Bytes instance that wraps the provided
byteArray and
is ready for writing operations. |
static @NotNull Bytes<ByteBuffer> |
Bytes.wrapForWrite(@NotNull ByteBuffer byteBuffer)
Creates and returns a new Bytes instance that wraps the provided
byteBuffer. |
@NotNull Bytes<Void> |
HexDumpBytes.write(byte[] byteArray) |
@NotNull Bytes<Void> |
HexDumpBytes.write(byte[] byteArray,
int offset,
int length) |
@NotNull Bytes<U> |
UncheckedNativeBytes.write(byte[] byteArray,
int offset,
int length) |
@NotNull Bytes<U> |
AbstractBytes.write(byte[] byteArray,
int offset,
int length) |
Bytes<Void> |
HexDumpBytes.write(@NotNull BytesStore<?,?> bytes) |
Bytes<U> |
AbstractBytes.write(@NotNull BytesStore<?,?> bytes) |
@NotNull Bytes<U> |
VanillaBytes.write(@NotNull BytesStore bytes,
long offset,
long length) |
@NotNull Bytes<Void> |
HexDumpBytes.write(@NotNull BytesStore bytes,
long offset,
long length) |
@NotNull Bytes<U> |
UncheckedBytes.write(@NotNull BytesStore bytes,
long offset,
long length) |
@NotNull Bytes<Void> |
HexDumpBytes.write(@NotNull CharSequence text) |
@NotNull Bytes<Void> |
HexDumpBytes.write(@NotNull CharSequence text,
int startText,
int length) |
Bytes<?> |
HexDumpBytes.write(@NotNull InputStream inputStream) |
default Bytes |
Bytes.write(@NotNull InputStream inputStream)
Writes the contents of the provided
inputStream into this Bytes object. |
@NotNull Bytes<Void> |
HexDumpBytes.write(long offsetInRDO,
byte[] byteArray,
int offset,
int length) |
@NotNull Bytes<U> |
UncheckedNativeBytes.write(long offsetInRDO,
byte[] byteArray,
int offset,
int length) |
@NotNull Bytes<U> |
AbstractBytes.write(long offsetInRDO,
byte[] byteArray,
int offset,
int length) |
@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) |
@NotNull Bytes<Void> |
HexDumpBytes.write(@NotNull RandomDataInput bytes) |
@NotNull Bytes<U> |
UncheckedNativeBytes.write(@NotNull RandomDataInput bytes) |
@NotNull Bytes<U> |
AbstractBytes.write(@NotNull RandomDataInput bytes) |
@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) |
@NotNull Bytes<Void> |
HexDumpBytes.write8bit(@Nullable BytesStore bs)
Deprecated.
|
Bytes<U> |
UncheckedNativeBytes.write8bit(@Nullable BytesStore bs) |
@NotNull Bytes<U> |
AbstractBytes.write8bit(@Nullable BytesStore bs) |
@NotNull Bytes<Void> |
HexDumpBytes.write8bit(@Nullable CharSequence text) |
@NotNull Bytes<Void> |
HexDumpBytes.write8bit(@NotNull CharSequence text,
int start,
int length) |
@NotNull Bytes<Void> |
HexDumpBytes.write8bit(@Nullable String s) |
@NotNull Bytes<Void> |
HexDumpBytes.write8bit(@NotNull String text,
int start,
int length) |
@NotNull Bytes<U> |
UncheckedNativeBytes.write8bit(@NotNull String text,
int start,
int length) |
@NotNull Bytes<U> |
AbstractBytes.write8bit(@NotNull String text,
int start,
int length) |
@NotNull Bytes<Void> |
HexDumpBytes.writeBoolean(boolean flag) |
@NotNull Bytes<U> |
AbstractBytes.writeBoolean(boolean flag) |
@NotNull Bytes<U> |
GuardedNativeBytes.writeByte(byte i8) |
@NotNull Bytes<Void> |
HexDumpBytes.writeByte(byte i8) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeByte(byte i8) |
@NotNull Bytes<U> |
NativeBytes.writeByte(byte i8) |
@NotNull Bytes<U> |
UncheckedBytes.writeByte(byte i8) |
@NotNull Bytes<U> |
AbstractBytes.writeByte(byte i8) |
@NotNull Bytes<Void> |
HexDumpBytes.writeByte(long offset,
byte i8) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeByte(long offset,
byte i) |
@NotNull Bytes<U> |
AbstractBytes.writeByte(long offset,
byte i) |
@NotNull Bytes<U> |
GuardedNativeBytes.writeDouble(double d) |
@NotNull Bytes<Void> |
HexDumpBytes.writeDouble(double d) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeDouble(double d) |
@NotNull Bytes<U> |
AbstractBytes.writeDouble(double d) |
@NotNull Bytes<Void> |
HexDumpBytes.writeDouble(long offset,
double d) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeDouble(long offset,
double d) |
@NotNull Bytes<U> |
AbstractBytes.writeDouble(long offset,
double d) |
@NotNull Bytes<Void> |
HexDumpBytes.writeDoubleAndInt(double d,
int i) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeDoubleAndInt(double d,
int i) |
@NotNull Bytes<U> |
AbstractBytes.writeDoubleAndInt(double d,
int i) |
<E extends Enum<E>> |
HexDumpBytes.writeEnum(E e) |
@NotNull Bytes<U> |
GuardedNativeBytes.writeFloat(float f) |
@NotNull Bytes<Void> |
HexDumpBytes.writeFloat(float f) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeFloat(float f) |
@NotNull Bytes<U> |
AbstractBytes.writeFloat(float f) |
@NotNull Bytes<Void> |
HexDumpBytes.writeFloat(long offset,
float d) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeFloat(long offset,
float d) |
@NotNull Bytes<U> |
AbstractBytes.writeFloat(long offset,
float d) |
Bytes<Void> |
HexDumpBytes.writeHexDumpDescription(@NotNull CharSequence comment) |
@NotNull Bytes<U> |
GuardedNativeBytes.writeInt(int i) |
@NotNull Bytes<Void> |
HexDumpBytes.writeInt(int i) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeInt(int i) |
@NotNull Bytes<U> |
AbstractBytes.writeInt(int i) |
@NotNull Bytes<Void> |
HexDumpBytes.writeInt(long offset,
int i) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeInt(long offset,
int i) |
@NotNull Bytes<U> |
AbstractBytes.writeInt(long offset,
int i) |
@NotNull Bytes<Void> |
HexDumpBytes.writeInt24(int i) |
@NotNull Bytes<Void> |
HexDumpBytes.writeInt24(long offset,
int i) |
@NotNull Bytes<Void> |
HexDumpBytes.writeIntAdv(int i,
int advance) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeIntAdv(int i,
int advance) |
@NotNull Bytes<U> |
AbstractBytes.writeIntAdv(int i,
int advance) |
@NotNull Bytes<Void> |
HexDumpBytes.writeLimit(long limit) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeLimit(long limit) |
@NotNull Bytes<U> |
UncheckedBytes.writeLimit(long limit) |
@NotNull Bytes<U> |
AbstractBytes.writeLimit(long limit) |
@NotNull Bytes<U> |
GuardedNativeBytes.writeLong(long i64) |
@NotNull Bytes<Void> |
HexDumpBytes.writeLong(long i64) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeLong(long i64) |
@NotNull Bytes<U> |
NativeBytes.writeLong(long i64) |
@NotNull Bytes<U> |
AbstractBytes.writeLong(long i64) |
@NotNull Bytes<Void> |
HexDumpBytes.writeLong(long offset,
long i) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeLong(long offset,
long i) |
@NotNull Bytes<U> |
AbstractBytes.writeLong(long offset,
long i) |
@NotNull Bytes<Void> |
HexDumpBytes.writeLongAdv(long i64,
int advance) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeLongAdv(long i64,
int advance) |
@NotNull Bytes<U> |
AbstractBytes.writeLongAdv(long i64,
int advance) |
@NotNull Bytes<Void> |
HexDumpBytes.writeOrderedInt(int i) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeOrderedInt(int i) |
@NotNull Bytes<U> |
AbstractBytes.writeOrderedInt(int i) |
@NotNull Bytes<Void> |
HexDumpBytes.writeOrderedInt(long offset,
int i) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeOrderedInt(long offset,
int i) |
@NotNull Bytes<U> |
AbstractBytes.writeOrderedInt(long offset,
int i) |
@NotNull Bytes<Void> |
HexDumpBytes.writeOrderedLong(long i) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeOrderedLong(long i) |
@NotNull Bytes<U> |
AbstractBytes.writeOrderedLong(long i) |
@NotNull Bytes<Void> |
HexDumpBytes.writeOrderedLong(long offset,
long i) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeOrderedLong(long offset,
long i) |
@NotNull Bytes<U> |
AbstractBytes.writeOrderedLong(long offset,
long i) |
@NotNull Bytes<Void> |
HexDumpBytes.writePosition(long position) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writePosition(long position) |
@NotNull Bytes<U> |
UncheckedBytes.writePosition(long position) |
@NotNull Bytes<U> |
AbstractBytes.writePosition(long position) |
@NotNull Bytes<Void> |
HexDumpBytes.writeShort(long offset,
short i) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeShort(long offset,
short i) |
@NotNull Bytes<U> |
AbstractBytes.writeShort(long offset,
short i) |
@NotNull Bytes<U> |
GuardedNativeBytes.writeShort(short i16) |
@NotNull Bytes<Void> |
HexDumpBytes.writeShort(short i16) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeShort(short i16) |
@NotNull Bytes<U> |
AbstractBytes.writeShort(short i16) |
@NotNull Bytes<Void> |
HexDumpBytes.writeSkip(long bytesToSkip) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeSkip(long bytesToSkip) |
@NotNull Bytes<U> |
UncheckedBytes.writeSkip(long bytesToSkip) |
@NotNull Bytes<U> |
AbstractBytes.writeSkip(long bytesToSkip) |
@NotNull Bytes<Void> |
HexDumpBytes.writeSome(@NotNull ByteBuffer buffer) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeSome(@NotNull ByteBuffer buffer) |
@NotNull Bytes<U> |
AbstractBytes.writeSome(@NotNull ByteBuffer buffer) |
@NotNull Bytes<Void> |
HexDumpBytes.writeSome(@NotNull Bytes<?> bytes) |
@NotNull Bytes<U> |
GuardedNativeBytes.writeStopBit(char x) |
@NotNull Bytes<Void> |
HexDumpBytes.writeStopBit(char x) |
@NotNull Bytes<Void> |
HexDumpBytes.writeStopBit(double d) |
@NotNull Bytes<U> |
GuardedNativeBytes.writeStopBit(long x) |
@NotNull Bytes<Void> |
HexDumpBytes.writeStopBit(long x) |
@NotNull Bytes<Void> |
HexDumpBytes.writeStopBitDecimal(double d) |
@NotNull Bytes<Void> |
HexDumpBytes.writeUnsignedByte(int i) |
@NotNull Bytes<Void> |
HexDumpBytes.writeUnsignedInt(long i) |
@NotNull Bytes<Void> |
HexDumpBytes.writeUnsignedInt24(int i) |
@NotNull Bytes<Void> |
HexDumpBytes.writeUnsignedShort(int u16) |
@NotNull Bytes<Void> |
HexDumpBytes.writeUtf8(@Nullable CharSequence text) |
@NotNull Bytes<Void> |
HexDumpBytes.writeUtf8(@Nullable String text) |
@NotNull Bytes<U> |
UncheckedBytes.writeUtf8(@Nullable String text) |
@NotNull Bytes<Void> |
HexDumpBytes.writeVolatileByte(long offset,
byte i8) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeVolatileByte(long offset,
byte i8) |
@NotNull Bytes<U> |
AbstractBytes.writeVolatileByte(long offset,
byte i8) |
@NotNull Bytes<Void> |
HexDumpBytes.writeVolatileInt(long offset,
int i32) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeVolatileInt(long offset,
int i32) |
@NotNull Bytes<U> |
AbstractBytes.writeVolatileInt(long offset,
int i32) |
@NotNull Bytes<Void> |
HexDumpBytes.writeVolatileLong(long offset,
long i64) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeVolatileLong(long offset,
long i64) |
@NotNull Bytes<U> |
AbstractBytes.writeVolatileLong(long offset,
long i64) |
@NotNull Bytes<Void> |
HexDumpBytes.writeVolatileShort(long offset,
short i16) |
@NotNull Bytes<U> |
UncheckedNativeBytes.writeVolatileShort(long offset,
short i16) |
@NotNull Bytes<U> |
AbstractBytes.writeVolatileShort(long offset,
short i16) |
@NotNull Bytes<Void> |
HexDumpBytes.zeroOut(long start,
long end) |
| Modifier and Type | Method and Description |
|---|---|
BytesStore<Bytes<U>,U> |
Bytes.copy()
Creates and returns a deep copy of this Bytes object, including the data between
RandomCommon.readPosition() and RandomCommon.readLimit(). |
static BytesStore<Bytes<Void>,Void> |
NativeBytes.copyOf(@NotNull Bytes<?> bytes)
Deprecated.
This method is to be removed in version x.26.
|
static BytesStore<Bytes<Void>,Void> |
BytesUtil.copyOf(@NotNull Bytes<?> bytes)
Returns a copy of the given Bytes object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
OffsetFormat.append(long offset,
Bytes<?> bytes)
Appends the given offset to the provided
Bytes instance. |
static void |
BytesUtil.appendBytesFromStart(@NotNull Bytes<?> bytes,
long startPosition,
@NotNull StringBuilder sb)
Appends bytes from a specified start position of a Bytes object to a StringBuilder.
|
long |
RingBufferReader.beforeRead(Bytes<?> bytes)
Prepares the reader to read data from the Ring Buffer.
|
default void |
BytesStore.cipher(@NotNull Cipher cipher,
@NotNull Bytes<?> outBytes)
Convenience method to perform the cipher operation using thread local ByteBuffers for temporary buffers.
|
default void |
BytesStore.cipher(@NotNull Cipher cipher,
@NotNull Bytes<?> outBytes,
@NotNull ByteBuffer using1,
@NotNull ByteBuffer using2)
Encrypts or decrypts this BytesStore using the provided Cipher and writes the result to the outBytes.
|
static void |
BytesUtil.combineDoubleNewline(Bytes<?> bytes)
Checks the last two characters of the given Bytes object.
|
static BytesStore<Bytes<Void>,Void> |
NativeBytes.copyOf(@NotNull Bytes<?> bytes)
Deprecated.
This method is to be removed in version x.26.
|
static BytesStore<Bytes<Void>,Void> |
BytesUtil.copyOf(@NotNull Bytes<?> bytes)
Returns a copy of the given Bytes object.
|
default long |
Bytes.indexOf(@NotNull Bytes source)
Returns the index within this Bytes object of the first occurrence of the specified
sub-bytes represented by the
source Bytes object. |
static void |
AppendableUtil.parse8bit_SB1(@NotNull Bytes<?> bytes,
@NotNull StringBuilder sb,
int length)
Parses a sequence of 8-bit characters from the given Bytes input and appends them to a StringBuilder.
|
default void |
ByteStringParser.parse8bit(Bytes<?> buffer,
@NotNull StopCharsTester stopCharsTester)
Parses an ISO-8859-1 encoded string from the byte string until the provided
stopCharsTester
detects an end condition. |
default void |
StreamingDataInput.read(@NotNull Bytes<?> bytes)
Transfers as many bytes as possible from the input stream into the provided Bytes object.
|
void |
HexDumpBytes.read(@NotNull Bytes<?> bytes,
int length) |
default void |
StreamingDataInput.read(@NotNull Bytes<?> bytes,
int length)
Transfers the specified number of bytes from the input stream into the provided Bytes object.
|
boolean |
HexDumpBytes.read8bit(@NotNull Bytes<?> b) |
default boolean |
StreamingDataInput.read8bit(@NotNull Bytes<?> b)
Reads an 8-bit encoded string from the input stream and appends it to the provided Bytes.
|
static void |
BytesUtil.read8ByteAlignPadding(Bytes<?> bytes)
Reads padding bytes from a Bytes object to align the read position to the nearest 8-byte boundary.
|
default boolean |
StreamingDataInput.readUtf8(@NotNull Bytes<?> sb)
Reads a UTF-8 encoded string from the input stream and appends it to the provided Bytes.
|
void |
HexDumpBytes.readWithLength(@NotNull Bytes<?> bytes) |
default void |
StreamingDataInput.readWithLength(@NotNull Bytes<?> bytes)
Reads data from the input stream with specified length into the provided Bytes.
|
static void |
BytesUtil.reverse(Bytes<?> text,
int start)
Reverses the contents of a Bytes object from a specified starting position.
|
void |
UncheckedBytes.setBytes(@NotNull Bytes<?> bytes)
Sets the underlying Bytes instance for this UncheckedBytes.
|
static @NotNull char[] |
BytesUtil.toCharArray(@NotNull Bytes<?> bytes)
Converts the bytes from a Bytes object into a character array.
|
static @NotNull char[] |
BytesUtil.toCharArray(@NotNull Bytes<?> bytes,
long position,
int length)
Converts a specific range of bytes from a Bytes object into a character array.
|
static @NotNull String |
Bytes.toString(@NotNull Bytes<?> buffer)
Creates and returns a substring from the provided
buffer between its current
readPosition and readLimit. |
static @NotNull String |
Bytes.toString(@NotNull Bytes<?> buffer,
long maxLen)
Creates and returns a substring from the provided
buffer between its current
readPosition and readLimit, truncated to the specified maximum length. |
static @NotNull String |
Bytes.toString(@NotNull Bytes<?> buffer,
long position,
long length)
Extracts a string from the provided
buffer starting at the specified position,
and spanning for the specified length number of characters. |
static void |
BytesUtil.write8ByteAlignPadding(Bytes<?> bytes)
Writes padding bytes to a Bytes object to align the write position to the nearest 8-byte boundary.
|
static void |
BytesUtil.writeFile(String file,
Bytes<byte[]> bytes)
Writes the content of a Bytes object to a file specified by name.
|
default S |
StreamingDataOutput.writeSome(@NotNull Bytes<?> bytes)
Deprecated.
use write(bytes) instead and alter the bytes as you intended
|
@NotNull Bytes<Void> |
HexDumpBytes.writeSome(@NotNull Bytes<?> bytes) |
@NotNull NativeBytes |
NativeBytes.writeSome(@NotNull Bytes<?> bytes) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractBytes.bytesStore(BytesStore<Bytes<U>,U> bytesStore) |
| Constructor and Description |
|---|
UncheckedBytes(@NotNull Bytes<?> underlyingBytes)
Constructs an UncheckedBytes instance by wrapping around the provided Bytes object.
|
UncheckedNativeBytes(@NotNull Bytes<U> underlyingBytes)
Constructs an UncheckedNativeBytes instance by wrapping around the provided Bytes object.
|
| 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 | Field and Description |
|---|---|
static @NotNull Bytes<?> |
NoBytesStore.NO_BYTES |
| Modifier and Type | Field and Description |
|---|---|
static net.openhft.chronicle.core.scoped.ScopedThreadLocal<Bytes<?>> |
BytesInternal.BYTES_SCOPED_THREAD_LOCAL |
| Modifier and Type | Method and Description |
|---|---|
static Bytes<?> |
BytesInternal.acquireBytes()
Deprecated.
Use
BytesInternal.acquireBytesScoped() instead |
@NotNull Bytes<Void> |
CommonMappedBytes.append8bit(@NotNull CharSequence text,
int start,
int end) |
@NotNull Bytes<Void> |
ChunkedMappedBytes.appendUtf8(char[] chars,
int offset,
int length) |
@NotNull Bytes<Void> |
CommonMappedBytes.appendUtf8(@NotNull CharSequence cs,
int start,
int length) |
static @NotNull Bytes<?> |
BytesInternal.asBytes(@NotNull RandomDataOutput bytes,
long position,
long limit) |
@NotNull Bytes<?> |
NoBytesStore.bytesForRead() |
@NotNull Bytes<?> |
NoBytesStore.bytesForWrite() |
@NotNull Bytes<Void> |
ChunkedMappedBytes.clear() |
@NotNull Bytes<Void> |
SingleMappedBytes.clear() |
@NotNull Bytes<Void> |
CommonMappedBytes.clear() |
static @NotNull Bytes<?> |
BytesInternal.fromHexString(@NotNull String s) |
Bytes<Void> |
CommonMappedBytes.readLimitToCapacity() |
@NotNull Bytes<Void> |
ChunkedMappedBytes.readPosition(long position) |
@NotNull Bytes<Void> |
ChunkedMappedBytes.readPositionRemaining(long position,
long remaining) |
@NotNull Bytes<Void> |
SingleMappedBytes.readPositionRemaining(long position,
long remaining) |
@NotNull Bytes<Void> |
ChunkedMappedBytes.readSkip(long bytesToSkip) |
Bytes<Void> |
SingleMappedBytes.write(@NotNull BytesStore<?,?> bytes) |
@NotNull Bytes<Void> |
ChunkedMappedBytes.write(@NotNull BytesStore bytes,
long offset,
long length) |
@NotNull Bytes<Void> |
CommonMappedBytes.write(@NotNull RandomDataInput bytes,
long offset,
long length) |
@NotNull Bytes<Void> |
CommonMappedBytes.writePosition(long position) |
@NotNull Bytes<Void> |
ChunkedMappedBytes.writeSkip(long bytesToSkip) |
@NotNull Bytes<Void> |
SingleMappedBytes.writeSkip(long bytesToSkip) |
@NotNull Bytes<Void> |
CommonMappedBytes.writeSkip(long bytesToSkip) |
@NotNull Bytes<Void> |
CommonMappedBytes.writeStopBit(char n) |
@NotNull Bytes<Void> |
CommonMappedBytes.writeStopBit(long n) |
@NotNull Bytes<Void> |
CommonMappedBytes.writeUtf8(@Nullable CharSequence text) |
@NotNull Bytes<Void> |
CommonMappedBytes.writeUtf8(@Nullable String text) |
| Modifier and Type | Method and Description |
|---|---|
static net.openhft.chronicle.core.scoped.ScopedResource<Bytes<?>> |
BytesInternal.acquireBytesScoped()
Acquire a scoped, thread-local bytes instance
|
BytesStore<Bytes<Void>,Void> |
CommonMappedBytes.copy() |
| 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.parseUtf8_SB1(@NotNull Bytes<?> bytes,
@NotNull StringBuilder sb,
boolean utf,
int utflen) |
static String |
BytesInternal.toHexString(@NotNull Bytes<?> bytes,
long offset,
long maxLength)
Converts the content of the provided Bytes buffer to a hexadecimal string representation
along with comments describing the meaning of the bytes.
|
| Modifier and Type | Method and Description |
|---|---|
Bytes<?> |
BytesPool.acquireBytes()
Deprecated.
Use
BytesPool.createThreadLocal() and ScopedResourcePool.get() instead |
| Modifier and Type | Method and Description |
|---|---|
static net.openhft.chronicle.core.scoped.ScopedResourcePool<Bytes<?>> |
BytesPool.createThreadLocal()
Create a scoped-thread-local pool of bytes resources
|
static net.openhft.chronicle.core.scoped.ScopedResourcePool<Bytes<?>> |
BytesPool.createThreadLocal(int instancesPerThread)
Create a scoped-thread-local pool of bytes resources
|
| Modifier and Type | Method and Description |
|---|---|
static void |
BinaryIntArrayReference.lazyWrite(@NotNull Bytes<?> bytes,
long capacity)
Lazily initializes the binary data in the provided Bytes object with the given capacity.
|
static void |
BinaryLongArrayReference.lazyWrite(@NotNull Bytes<?> bytes,
long capacity)
Lazily writes to the provided Bytes object with the given capacity.
|
static void |
TextIntReference.write(@NotNull Bytes<?> bytes,
int value)
Writes the provided 32-bit integer value into the given Bytes instance in Text wire format.
|
static void |
TextLongArrayReference.write(@NotNull Bytes<?> bytes,
long capacity)
Writes the initial structure of a long array to the specified
Bytes instance
in text wire format, with the given capacity. |
static void |
BinaryIntArrayReference.write(@NotNull Bytes<?> bytes,
long capacity)
Initializes the binary data in the provided Bytes object with the given capacity.
|
static void |
BinaryLongArrayReference.write(@NotNull Bytes<?> bytes,
long capacity)
Writes to the provided Bytes object with the given capacity.
|
static void |
TextIntArrayReference.write(@NotNull Bytes<?> bytes,
long capacity)
Writes an array of integers to the specified
Bytes instance in a text format. |
static void |
TextLongReference.write(@NotNull Bytes<?> bytes,
long value)
Writes the initial structure of a 64-bit long value to the specified
Bytes instance
in Text wire format, with the given value. |
| Modifier and Type | Method and Description |
|---|---|
static void |
Compression.compress(@NotNull CharSequence cs,
@NotNull Bytes<?> uncompressed,
@NotNull Bytes<?> compressed)
Compresses the input uncompressed data into the output compressed data using the specified algorithm.
|
static void |
Compression.compress(@NotNull CharSequence cs,
@NotNull Bytes<?> uncompressed,
@NotNull Bytes<?> compressed)
Compresses the input uncompressed data into the output compressed data using the specified algorithm.
|
String |
StringInternerBytes.intern(@NotNull Bytes<?> bytes)
Interns the string representation of the given bytes.
|
T |
AbstractInterner.intern(@NotNull Bytes<?> cs)
Interns the specified Bytes object.
|
String |
StringInternerBytes.intern(@NotNull Bytes<?> bytes,
int length)
Converts the given bytes to an ISO-8859-1 encoded string, and interns it.
|
T |
AbstractInterner.intern(@NotNull Bytes<?> cs,
int length)
Interns the specified Bytes object of a given length.
|
abstract void |
BinaryLengthLength.writeLength(@NotNull Bytes<?> bytes,
long positionReturnedFromInitialise,
long end)
Writes the length of the data into the
Bytes object. |
Copyright © 2023. All rights reserved.