| 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 | Class and Description |
|---|---|
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 |
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. |
| 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()
Factory method for creating an instance of VanillaBytes with no initial ByteStore.
|
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 © 2024. All rights reserved.