| Modifier and Type | Method and Description |
|---|---|
void |
SingleThreadedDirectBitSet.reuse(Bytes bytes) |
static DirectBitSet |
ATSDirectBitSet.wrap(Bytes bytes) |
| Constructor and Description |
|---|
SingleThreadedDirectBitSet(Bytes bytes) |
| Modifier and Type | Class and Description |
|---|---|
class |
WrappedBytes<B extends Bytes>
A super class for those which wrap bytes.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
IByteBufferBytes
Created by peter.lawrey on 27/01/15.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractBytes |
class |
BoundsCheckingDirectBytes
Unlike
NativeBytes, always throw check bounds and exceptions on all write methods,
including that write a single primitive, e. |
class |
BoundsCheckingNativeBytes
Unlike
NativeBytes, always throw check bounds and exceptions on
all write methods, including that write a single primitive, e. |
class |
ByteBufferBytes |
class |
CheckedBytes |
class |
DirectByteBufferBytes |
class |
DirectBytes |
class |
MappedNativeBytes
works in conjunction with a MappedFile to map additional memory blocks when required This
implementation is very similar to
NativeBytes, accept that the memory address resolution
is left to ChronicleUnsafe, rather than being part of this class. |
class |
MultiStoreBytes |
class |
NativeBytes |
class |
VanillaMappedBytes |
class |
WrappedBytes<B extends Bytes>
A super class for those which wrap bytes.
|
| Modifier and Type | Field and Description |
|---|---|
protected B |
WrappedBytes.wrapped |
| Modifier and Type | Method and Description |
|---|---|
Bytes |
MappedMemory.bytes() |
Bytes |
CheckedBytes.bytes() |
Bytes |
BytesStore.bytes()
Create a bytes whose content is the whole bytes store.
|
Bytes |
WrappedBytes.bytes() |
Bytes |
MappedMemory.bytes(long offset,
long length) |
Bytes |
CheckedBytes.bytes(long offset,
long length) |
Bytes |
BytesStore.bytes(long offset,
long length)
|
Bytes |
WrappedBytes.bytes(long offset,
long length) |
Bytes |
CheckedBytes.clear() |
Bytes |
WrappedBytes.clear() |
Bytes |
BytesCommon.clear()
Clears this buffer.
|
Bytes |
CheckedBytes.flip() |
Bytes |
WrappedBytes.flip() |
Bytes |
BytesCommon.flip()
Flips this buffer.
|
Bytes |
AbstractBytes.flip() |
Bytes |
CheckedBytes.limit(long limit) |
Bytes |
WrappedBytes.limit(long limit) |
Bytes |
BytesCommon.limit(long limit) |
Bytes |
CheckedBytes.load() |
Bytes |
ByteBufferBytes.load() |
Bytes |
WrappedBytes.load() |
Bytes |
BytesCommon.load()
Access every page to ensure those pages are in memory.
|
Bytes |
MappedNativeBytes.load() |
Bytes |
NativeBytes.load() |
Bytes |
CheckedBytes.position(long position) |
Bytes |
WrappedBytes.position(long position) |
Bytes |
BytesCommon.position(long position) |
Bytes |
CheckedBytes.slice() |
Bytes |
WrappedBytes.slice() |
Bytes |
BytesCommon.slice()
Creates a new bytes whose content is a shared subsequence of this bytes'
content.
|
Bytes |
CheckedBytes.slice(long offset,
long length) |
Bytes |
WrappedBytes.slice(long offset,
long length) |
Bytes |
BytesCommon.slice(long offset,
long length)
Creates a new bytes whose content is a shared subsequence of this bytes'
content.
|
Bytes |
MultiStoreBytes.underlyingBytes() |
Bytes |
CheckedBytes.zeroOut() |
Bytes |
ByteBufferBytes.zeroOut() |
Bytes |
WrappedBytes.zeroOut() |
Bytes |
RandomDataOutput.zeroOut()
fill the Bytes with zeros, and clear the position.
|
Bytes |
MappedNativeBytes.zeroOut() |
Bytes |
NativeBytes.zeroOut() |
Bytes |
CheckedBytes.zeroOut(long start,
long end) |
Bytes |
ByteBufferBytes.zeroOut(long start,
long end) |
Bytes |
WrappedBytes.zeroOut(long start,
long end) |
Bytes |
RandomDataOutput.zeroOut(long start,
long end)
fill the Bytes with zeros.
|
Bytes |
MappedNativeBytes.zeroOut(long start,
long end) |
Bytes |
NativeBytes.zeroOut(long start,
long end) |
Bytes |
CheckedBytes.zeroOut(long start,
long end,
boolean ifNotZero) |
Bytes |
ByteBufferBytes.zeroOut(long start,
long end,
boolean ifNotZero) |
Bytes |
WrappedBytes.zeroOut(long start,
long end,
boolean ifNotZero) |
Bytes |
RandomDataOutput.zeroOut(long start,
long end,
boolean ifNotZero)
fill the Bytes with zeros, and clear the position, avoiding touching pages unnecessarily
|
Bytes |
MappedNativeBytes.zeroOut(long start,
long end,
boolean ifNotZero) |
Bytes |
NativeBytes.zeroOut(long start,
long end,
boolean ifNotZero) |
| Modifier and Type | Method and Description |
|---|---|
long |
BytesHasher.hash(Bytes bytes)
Provide a 64-bit hash for the bytes in Bytes between the bytes.position() and bytes.limit();
|
long |
VanillaBytesHasher.hash(Bytes bytes) |
long |
VanillaBytesHash.hash(Bytes bytes) |
long |
BytesHasher.hash(Bytes bytes,
long offset,
long limit)
Provide a 64-bit hash for the bytes between offset and limit
|
long |
VanillaBytesHasher.hash(Bytes bytes,
long offset,
long limit) |
long |
VanillaBytesHash.hash(Bytes bytes,
long offset,
long limit) |
void |
CheckedBytes.readMarshallable(Bytes in) |
void |
WrappedBytes.readMarshallable(Bytes in) |
void |
AbstractBytes.readMarshallable(Bytes in) |
static void |
AbstractBytes.readUTF2(Bytes bytes,
Appendable appendable,
int utflen,
int count) |
void |
MultiStoreBytes.setBytesOffset(Bytes bytes,
long offset) |
static String |
AbstractBytes.toHex(Bytes buffer)
display the hex data of
Bytes from the position() to the limit() |
static String |
AbstractBytes.toHexString(Bytes bytes,
long offset,
long len) |
static String |
AbstractBytes.toString(Bytes buffer)
display the buffer as a string
|
void |
CheckedBytes.write(long offset,
Bytes bytes) |
void |
WrappedBytes.write(long offset,
Bytes bytes) |
void |
RandomDataOutput.write(long offset,
Bytes bytes) |
void |
AbstractBytes.write(long offset,
Bytes bytes) |
void |
CheckedBytes.writeMarshallable(Bytes out) |
void |
WrappedBytes.writeMarshallable(Bytes out) |
void |
AbstractBytes.writeMarshallable(Bytes out) |
static void |
AbstractBytes.writeUTF0(Bytes bytes,
CharSequence str,
int strlen) |
static void |
AbstractBytes.writeUTF1(Bytes bytes,
CharSequence str,
int strlen) |
| Constructor and Description |
|---|
CheckedBytes(Bytes bytes) |
| Modifier and Type | Method and Description |
|---|---|
E |
BytesMarshaller.read(Bytes bytes)
Reads and returns an object from
bytes. |
E |
BytesMarshaller.read(Bytes bytes,
E e)
Reads and returns an object from
bytes, reusing the given object, if possible. |
void |
BytesMarshallable.readMarshallable(Bytes in)
read an object from bytes
|
<T> T |
JDKZObjectSerializer.readSerializable(Bytes bytes,
Class<T> expectedClass,
T object) |
<T> T |
JDKObjectSerializer.readSerializable(Bytes bytes,
Class<T> expectedClass,
T object) |
<T> T |
ObjectSerializer.readSerializable(Bytes bytes,
Class<T> expectedClass,
T object)
Read an object
|
<T> T |
BytesMarshallableSerializer.readSerializable(Bytes bytes,
Class<T> expectedClass,
T object) |
void |
BytesMarshaller.write(Bytes bytes,
E e)
Write the object out to the
bytes. |
void |
BytesMarshallable.writeMarshallable(Bytes out)
write an object to bytes
|
void |
JDKZObjectSerializer.writeSerializable(Bytes bytes,
Object object,
Class expectedClass) |
void |
JDKObjectSerializer.writeSerializable(Bytes bytes,
Object object,
Class expectedClass) |
void |
ObjectSerializer.writeSerializable(Bytes bytes,
Object object,
Class expectedClass)
write an object
|
void |
BytesMarshallableSerializer.writeSerializable(Bytes bytes,
Object object,
Class expectedClass) |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
ByteBufferZMarshaller.read(Bytes bytes) |
E |
EnumBytesMarshaller.read(Bytes bytes) |
String |
StringMarshaller.read(Bytes bytes) |
Void |
NoMarshaller.read(Bytes bytes) |
Date |
DateMarshaller.read(Bytes bytes) |
E |
GenericEnumMarshaller.read(Bytes bytes) |
ByteBuffer |
ByteBufferMarshaller.read(Bytes bytes) |
Map<K,V> |
MapMarshaller.read(Bytes bytes) |
Class |
ClassMarshaller.read(Bytes bytes) |
E |
ExternalizableMarshaller.read(Bytes bytes) |
String |
SnappyStringMarshaller.read(Bytes bytes) |
Map<String,String> |
StringZMapMarshaller.read(Bytes bytes) |
E |
BytesMarshallableMarshaller.read(Bytes bytes) |
ByteBuffer |
ByteBufferZMarshaller.read(Bytes bytes,
ByteBuffer byteBuffer) |
ByteBuffer |
ByteBufferMarshaller.read(Bytes bytes,
ByteBuffer byteBuffer) |
String |
SnappyStringMarshaller.read(Bytes bytes,
CharSequence ignored) |
Date |
DateMarshaller.read(Bytes bytes,
Date date) |
E |
GenericEnumMarshaller.read(Bytes bytes,
E e) |
E |
ExternalizableMarshaller.read(Bytes bytes,
E e) |
E |
BytesMarshallableMarshaller.read(Bytes bytes,
E e) |
Map<K,V> |
MapMarshaller.read(Bytes bytes,
Map<K,V> kvMap) |
Map<String,String> |
StringZMapMarshaller.read(Bytes bytes,
Map<String,String> kvMap) |
Void |
NoMarshaller.read(Bytes bytes,
Void aVoid) |
void |
ByteBufferZMarshaller.write(Bytes bytes,
ByteBuffer byteBuffer) |
void |
ByteBufferMarshaller.write(Bytes bytes,
ByteBuffer byteBuffer) |
void |
SnappyStringMarshaller.write(Bytes bytes,
CharSequence s) |
void |
ClassMarshaller.write(Bytes bytes,
Class aClass) |
void |
DateMarshaller.write(Bytes bytes,
Date date) |
void |
EnumBytesMarshaller.write(Bytes bytes,
E e) |
void |
GenericEnumMarshaller.write(Bytes bytes,
E e) |
void |
ExternalizableMarshaller.write(Bytes bytes,
E e) |
void |
BytesMarshallableMarshaller.write(Bytes bytes,
E e) |
void |
MapMarshaller.write(Bytes bytes,
Map<K,V> kvMap) |
void |
StringZMapMarshaller.write(Bytes bytes,
Map<String,String> kvMap) |
void |
StringMarshaller.write(Bytes bytes,
String s) |
void |
NoMarshaller.write(Bytes bytes,
Void aVoid) |
| Modifier and Type | Method and Description |
|---|---|
BytesInputStream |
BytesInputStream.bytes(Bytes bytes)
Reassigns the underlying
Bytes of this input stream. |
BytesOutputStream |
BytesOutputStream.bytes(Bytes bytes)
Reassigns the underlying
Bytes of this output stream. |
| Constructor and Description |
|---|
BytesInputStream(Bytes bytes)
Constructs a
BytesInputStream backed by the given bytes. |
BytesOutputStream(Bytes bytes)
Constructs a
BytesOutputStream backed by the given bytes. |
| Modifier and Type | Method and Description |
|---|---|
static NativeAtomicAccess<Bytes> |
NativeAtomicAccess.toBytes() |
| Modifier and Type | Method and Description |
|---|---|
Bytes |
Byteable.bytes() |
| Modifier and Type | Method and Description |
|---|---|
void |
Byteable.bytes(Bytes bytes,
long offset) |
Copyright © 2019. All rights reserved.