| Package | Description |
|---|---|
| net.openhft.chronicle.bytes |
| Modifier and Type | Class and Description |
|---|---|
class |
GuardedNativeBytes<U>
Debugging wrapper that prefixes each primitive written with a type code and checks it on reads.
|
class |
NativeBytes<U>
VanillaBytes backed by native (off heap) memory or a direct
ByteBuffer. |
class |
OnHeapBytes
VanillaBytes backed by an on heap byte[]. |
class |
SubBytes<U>
Represents a fixed size view over a region of another
BytesStore. |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull VanillaBytes |
Bytes.allocateDirect(byte[] bytes)
Creates and returns a new fix sized wrapper for native (64-bit address)
memory with the contents copied from the given
bytes array. |
static @NotNull VanillaBytes<Void> |
Bytes.allocateDirect(long capacity)
Creates and returns a new
VanillaBytes object that is a fixed-size wrapper for native memory
(accessible via 64-bit addresses) with the specified capacity. |
@NotNull VanillaBytes<U> |
VanillaBytes.append(@NotNull CharSequence str,
int start,
int end) |
@NotNull VanillaBytes<U> |
VanillaBytes.appendUtf8(@NotNull CharSequence str) |
@NotNull VanillaBytes<Void> |
MappedBytesStore.bytesForWrite() |
@NotNull VanillaBytes<Void> |
PointerBytesStore.bytesForWrite()
Returns a new VanillaBytes for writing to this PointerBytesStore.
|
static @NotNull VanillaBytes<Void> |
VanillaBytes.vanillaBytes()
Creates a new
VanillaBytes backed by an empty native store. |
static <U> VanillaBytes<U> |
VanillaBytes.wrap(BytesStore<?,U> bytesStore)
Factory method for creating an instance of VanillaBytes that wraps the provided BytesStore.
|
| Modifier and Type | Method and Description |
|---|---|
void |
MappedFile.acquireBytesForRead(net.openhft.chronicle.core.io.ReferenceOwner owner,
long position,
@NotNull VanillaBytes<?> bytes)
Acquires bytes for read at the specified position and stores them in the provided VanillaBytes object.
|
void |
MappedFile.acquireBytesForWrite(net.openhft.chronicle.core.io.ReferenceOwner owner,
long position,
@NotNull VanillaBytes<?> bytes)
Acquires bytes for write at the specified position and stores them in the provided VanillaBytes object.
|
Copyright © 2026 Chronicle Software Ltd. All rights reserved.