| Package | Description |
|---|---|
| net.openhft.chronicle.bytes | |
| net.openhft.chronicle.bytes.algo |
| Modifier and Type | Interface and Description |
|---|---|
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.
|
class |
ExpectedBytesStore<B extends BytesStore<B,Underlying>,Underlying> |
| 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 |
ExpectedBytesStore<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 native memory accessor which can wrap either a direct ByteBuffer or malloc'ed memory.
|
class |
NativeBytesStore<Underlying> |
class |
NoBytesStore |
class |
PointerBytesStore
A BytesStore which can point to arbitary memory.
|
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 <B extends BytesStore<B,Underlying>,Underlying> |
Bytes.expect(BytesStore<B,Underlying> bytesStore)
A Bytes suitable for writing to for testing purposes.
|
static <T,B extends BytesStore<B,T>> |
NoBytesStore.noBytesStore() |
| Modifier and Type | Method and Description |
|---|---|
BytesStore |
UncheckedNativeBytes.bytesStore() |
BytesStore<B,Underlying> |
Byteable.bytesStore() |
BytesStore |
AbstractBytes.bytesStore() |
BytesStore |
Bytes.bytesStore() |
default BytesStore |
BytesStore.bytesStore() |
BytesStore<B,Underlying> |
ExpectedBytesStore.copy() |
BytesStore<Bytes<Underlying>,Underlying> |
UncheckedBytes.copy() |
BytesStore<Bytes<Void>,Void> |
MappedBytes.copy() |
BytesStore<Bytes<Underlying>,Underlying> |
UncheckedNativeBytes.copy() |
BytesStore<Bytes<Underlying>,Underlying> |
VanillaBytes.copy() |
BytesStore |
NoBytesStore.copy() |
BytesStore<NativeBytesStore<Underlying>,Underlying> |
NativeBytesStore.copy() |
BytesStore<HeapBytesStore<Underlying>,Underlying> |
HeapBytesStore.copy() |
BytesStore<Bytes<Underlying>,Underlying> |
Bytes.copy() |
BytesStore<B,Underlying> |
BytesStore.copy() |
static BytesStore<Bytes<Void>,Void> |
NativeBytes.copyOf(Bytes bytes) |
static BytesStore |
Bytes.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.
|
static BytesStore |
BytesStore.wrap(CharSequence cs)
Deprecated.
Use from(CharSequence) instead.
|
| 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.
|
void |
NoBytesStore.copyTo(BytesStore store) |
default void |
BytesStore.copyTo(BytesStore store)
Copy the data to another BytesStore
|
boolean |
VanillaBytes.equalBytes(BytesStore bytesStore,
long length) |
boolean |
NoBytesStore.equalBytes(BytesStore bytesStore,
long length) |
default boolean |
BytesStore.equalBytes(BytesStore bytesStore,
long length)
Check if a portion of a BytesStore matches this one.
|
static <B extends BytesStore<B,Underlying>,Underlying> |
Bytes.expect(BytesStore<B,Underlying> bytesStore)
A Bytes suitable for writing to for testing purposes.
|
void |
UncheckedBytes.rawCopy(BytesStore bytes,
long offset,
long length) |
void |
UncheckedNativeBytes.rawCopy(BytesStore bytes,
long offset,
long length) |
default S |
StreamingDataOutput.write(BytesStore bytes) |
Bytes<Underlying> |
UncheckedBytes.write(BytesStore bytes,
long offset,
long length) |
Bytes<Void> |
MappedBytes.write(BytesStore buffer,
long offset,
long length) |
Bytes<Underlying> |
UncheckedNativeBytes.write(BytesStore bytes,
long offset,
long length) |
Bytes<Underlying> |
NativeBytes.write(BytesStore bytes,
long offset,
long length) |
Bytes<Underlying> |
VanillaBytes.write(BytesStore bytes,
long offset,
long length) |
default S |
StreamingDataOutput.write(BytesStore bytes,
long offset,
long length) |
default S |
StreamingDataOutput.write8bit(BytesStore sdi) |
| 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) |
Copyright © 2015. All rights reserved.