| Package | Description |
|---|---|
| net.openhft.chronicle.bytes | |
| net.openhft.chronicle.bytes.algo | |
| net.openhft.chronicle.bytes.ref | |
| net.openhft.chronicle.bytes.util |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractBytesStore<B extends BytesStore<B,Underlying>,Underlying> |
interface |
Byteable<B extends BytesStore<B,Underlying>,Underlying>
This Interface allows a reference to off heap memory to be reassigned.
|
interface |
BytesStore<B extends BytesStore<B,Underlying>,Underlying>
A immutable reference to some bytes with fixed extents.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Bytes<Underlying>
Bytes is a pointer to a region of memory within a BytesStore.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractBytes<Underlying> |
class |
AbstractBytesStore<B extends BytesStore<B,Underlying>,Underlying> |
class |
HeapBytesStore<Underlying>
Wrapper for Heap ByteBuffers and arrays.
|
class |
MappedBytes
Bytes to wrap memory mapped data.
|
class |
MappedBytesStore
BytesStore to wrap memory mapped data.
|
class |
NativeBytes<Underlying>
Elastic memory accessor which can wrap either a ByteBuffer or malloc'ed memory.
|
class |
NativeBytesStore<Underlying> |
class |
NoBytesStore |
class |
PointerBytesStore
A BytesStore which can point to arbitrary memory.
|
class |
ReadOnlyMappedBytesStore
BytesStore to wrap memory mapped data.
|
class |
UncheckedBytes<Underlying>
Fast unchecked version of AbstractBytes
|
class |
UncheckedNativeBytes<Underlying>
Fast unchecked version of AbstractBytes
|
class |
VanillaBytes<Underlying>
Simple Bytes implementation which is not Elastic.
|
| Modifier and Type | Field and Description |
|---|---|
protected BytesStore<Bytes<Underlying>,Underlying> |
AbstractBytes.bytesStore |
| Modifier and Type | Method and Description |
|---|---|
static <T,B extends BytesStore<B,T>> |
NoBytesStore.noBytesStore() |
| Modifier and Type | Method and Description |
|---|---|
BytesStore |
Bytes.bytesStore() |
BytesStore<B,Underlying> |
Byteable.bytesStore() |
default BytesStore |
BytesStore.bytesStore() |
BytesStore |
UncheckedNativeBytes.bytesStore() |
BytesStore |
AbstractBytes.bytesStore() |
BytesStore<Bytes<Underlying>,Underlying> |
Bytes.copy() |
BytesStore<Bytes<Underlying>,Underlying> |
VanillaBytes.copy() |
BytesStore<B,Underlying> |
BytesStore.copy() |
BytesStore<Bytes<Void>,Void> |
MappedBytes.copy() |
BytesStore<Bytes<Underlying>,Underlying> |
UncheckedNativeBytes.copy() |
BytesStore<Bytes<Underlying>,Underlying> |
UncheckedBytes.copy() |
BytesStore |
NoBytesStore.copy() |
BytesStore<HeapBytesStore<Underlying>,Underlying> |
HeapBytesStore.copy() |
BytesStore<NativeBytesStore<Underlying>,Underlying> |
NativeBytesStore.copy() |
static BytesStore<Bytes<Void>,Void> |
NativeBytes.copyOf(Bytes bytes) |
static BytesStore |
BytesStore.empty() |
static BytesStore |
BytesStore.from(CharSequence cs)
This method builds a BytesStore using the bytes in a CharSequence.
|
static <T,B extends BytesStore<B,T>> |
NoBytesStore.noBytesStore() |
default BytesStore |
RandomDataInput.subBytes(long start,
long length)
Copy a sub sequence of bytes as a BytesStore.
|
static BytesStore<?,ByteBuffer> |
BytesStore.wrap(ByteBuffer bb)
Wraps a ByteBuffer which can be either on heap or off heap.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Byteable.bytesStore(BytesStore<B,Underlying> bytesStore,
long offset,
long length)
This setter for a data type which points to an underlying ByteStore.
|
void |
VanillaBytes.bytesStore(BytesStore<Bytes<Underlying>,Underlying> byteStore,
long offset,
long length) |
default boolean |
BytesStore.contentEquals(BytesStore bytesStore)
Compare the contents of the BytesStores.
|
default long |
Bytes.copyTo(BytesStore store)
copy bytes from one ByteStore to another
|
long |
StreamingDataInput.copyTo(BytesStore to) |
default long |
BytesStore.copyTo(BytesStore store)
Copy the data to another BytesStore as long as there is space available in the destination store.
|
long |
NoBytesStore.copyTo(BytesStore store) |
long |
NativeBytesStore.copyTo(BytesStore store) |
long |
NativeBytesStore.copyToDirect(BytesStore store) |
boolean |
VanillaBytes.equalBytes(BytesStore bytesStore,
long length) |
default boolean |
BytesStore.equalBytes(BytesStore bytesStore,
long length)
Check if a portion of a BytesStore matches this one.
|
boolean |
NoBytesStore.equalBytes(BytesStore bytesStore,
long length) |
boolean |
AbstractBytes.equalsBytes(BytesStore b2,
long remaining) |
static int |
Bytes.indexOf(BytesStore source,
BytesStore target,
int fromIndex)
Code shared by String and StringBuffer to do searches.
|
static int |
Bytes.indexOf(BytesStore source,
BytesStore target,
int fromIndex)
Code shared by String and StringBuffer to do searches.
|
default int |
Bytes.indexOf(BytesStore source,
int fromIndex)
Returns the index within this bytes of the first occurrence of the
specified subbytes.
|
boolean |
BytesRingBuffer.offer(BytesStore bytes0)
Inserts the specified element at the tail of this queue if it is possible to do so
immediately without exceeding the queue's capacity,
|
static void |
AppendableUtil.parseUtf8(BytesStore bs,
StringBuilder sb,
int utflen) |
B |
BytesPrepender.prewrite(BytesStore bytes)
Write backward in binary a byte
|
Bytes<Underlying> |
UncheckedNativeBytes.prewrite(BytesStore bytes) |
Bytes<Underlying> |
AbstractBytes.prewrite(BytesStore bytes) |
void |
MappedBytes.rawCopy(BytesStore bytes,
long offset,
long length) |
void |
UncheckedNativeBytes.rawCopy(BytesStore bytes,
long offset,
long length) |
void |
UncheckedBytes.rawCopy(BytesStore bytes,
long offset,
long length) |
default boolean |
BytesStore.startsWith(BytesStore bytesStore) |
MappedBytes |
MappedBytes.write(BytesStore bytes) |
default S |
StreamingDataOutput.write(BytesStore bytes)
Write all data or fail.
|
Bytes<Underlying> |
VanillaBytes.write(BytesStore bytes,
long offset,
long length) |
Bytes<Void> |
MappedBytes.write(BytesStore bytes,
long offset,
long length) |
Bytes<Underlying> |
UncheckedNativeBytes.write(BytesStore bytes,
long offset,
long length) |
Bytes<Underlying> |
UncheckedBytes.write(BytesStore bytes,
long offset,
long length) |
default S |
StreamingDataOutput.write(BytesStore bytes,
long offset,
long length)
Write all data or fail.
|
Bytes<Underlying> |
NativeBytes.write(BytesStore bytes,
long offset,
long length) |
default R |
RandomDataOutput.write(long offsetInRDO,
BytesStore bytes) |
default S |
StreamingDataOutput.write8bit(BytesStore sdi) |
default void |
StreamingDataOutput.writeWithLength(BytesStore bytes) |
| Constructor and Description |
|---|
VanillaBytes(BytesStore bytesStore) |
VanillaBytes(BytesStore bytesStore,
long writePosition,
long writeLimit) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
BytesStoreHash<B extends BytesStore>
Simple function to derive a long hash from a BytesStore
|
| Modifier and Type | Method and Description |
|---|---|
long |
VanillaBytesStoreHash.applyAsLong(BytesStore store) |
long |
VanillaBytesStoreHash.applyAsLong(BytesStore store,
int remaining) |
static long |
BytesStoreHash.hash(BytesStore b) |
| Modifier and Type | Method and Description |
|---|---|
BytesStore |
BinaryLongReference.bytesStore() |
BytesStore |
BinaryLongArrayReference.bytesStore() |
BytesStore |
TextLongArrayReference.bytesStore() |
BytesStore |
TextLongReference.bytesStore() |
BytesStore |
TextIntReference.bytesStore() |
BytesStore |
BinaryIntReference.bytesStore() |
BytesStore |
UncheckedLongReference.bytesStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
BinaryLongReference.bytesStore(BytesStore bytes,
long offset,
long length) |
void |
BinaryLongArrayReference.bytesStore(BytesStore bytes,
long offset,
long length) |
void |
TextLongArrayReference.bytesStore(BytesStore bytes,
long offset,
long length) |
void |
TextLongReference.bytesStore(BytesStore bytes,
long offset,
long length) |
void |
TextIntReference.bytesStore(BytesStore bytes,
long offset,
long length) |
void |
BinaryIntReference.bytesStore(BytesStore bytes,
long offset,
long length) |
void |
UncheckedLongReference.bytesStore(BytesStore bytes,
long offset,
long length) |
static LongReference |
UncheckedLongReference.create(BytesStore bytesStore,
long offset,
int size) |
static long |
BinaryLongArrayReference.peakLength(BytesStore bytes,
long offset) |
static long |
TextLongArrayReference.peakLength(BytesStore bytes,
long offset) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract T |
AbstractInterner.getValue(BytesStore bs,
int length) |
protected String |
UTF8StringInterner.getValue(BytesStore cs,
int length) |
protected String |
Bit8StringInterner.getValue(BytesStore cs,
int length) |
T |
AbstractInterner.intern(BytesStore cs) |
T |
AbstractInterner.intern(BytesStore cs,
int length) |
Copyright © 2017. All rights reserved.