| Package | Description |
|---|---|
| net.openhft.chronicle.bytes | |
| net.openhft.chronicle.bytes.pool | |
| net.openhft.chronicle.bytes.ref | |
| net.openhft.chronicle.bytes.util |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractBytes<Underlying> |
class |
HexDumpBytes |
class |
MappedBytes
Bytes to wrap memory mapped data.
|
class |
NativeBytes<Underlying>
Elastic memory accessor which can wrap either a ByteBuffer or malloc'ed 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 |
|---|---|
static Bytes |
NoBytesStore.NO_BYTES |
| Modifier and Type | Field and Description |
|---|---|
protected BytesStore<Bytes<Underlying>,Underlying> |
AbstractBytes.bytesStore |
| Modifier and Type | Method and Description |
|---|---|
Bytes |
MappedFile.acquireBytesForRead(long position)
Convenience method so you don't need to release the BytesStore
|
Bytes |
MappedFile.acquireBytesForWrite(long position) |
static Bytes |
Bytes.allocateDirect(byte[] bytes)
copies the contents of bytes into a direct byte buffer
|
Bytes<Underlying> |
VanillaBytes.append8bit(CharSequence cs) |
Bytes<Underlying> |
UncheckedNativeBytes.append8bit(CharSequence cs) |
Bytes<Underlying> |
UncheckedBytes.append8bit(CharSequence cs) |
Bytes<Void> |
MappedBytes.append8bit(CharSequence cs,
int start,
int end) |
Bytes<Underlying> |
VanillaBytes.append8bit(String cs) |
protected Bytes<Underlying> |
VanillaBytes.append8bit0(CharSequence cs) |
Bytes<Underlying> |
VanillaBytes.appendUtf8(char[] chars,
int offset,
int length) |
Bytes<Void> |
MappedBytes.appendUtf8(char[] chars,
int offset,
int length) |
Bytes<Underlying> |
UncheckedNativeBytes.appendUtf8(char[] chars,
int offset,
int length) |
Bytes<Void> |
MappedBytes.appendUtf8(CharSequence cs,
int start,
int length) |
default Bytes<Underlying> |
Bytes.bytesForRead()
Creates a slice of the current Bytes based on its position() and limit().
|
Bytes<Underlying> |
VanillaBytes.bytesForRead() |
default Bytes<Underlying> |
BytesStore.bytesForRead() |
default Bytes<Underlying> |
BytesStore.bytesForWrite() |
Bytes |
NoBytesStore.bytesForWrite() |
Bytes<Underlying> |
Bytes.clear() |
Bytes<Void> |
MappedBytes.clear() |
Bytes<Underlying> |
UncheckedNativeBytes.clear() |
Bytes<Underlying> |
AbstractBytes.clear() |
Bytes |
HexDumpBytes.clear() |
Bytes<Underlying> |
UncheckedNativeBytes.clearAndPad(long length) |
Bytes<Underlying> |
AbstractBytes.clearAndPad(long length) |
Bytes<Void> |
HexDumpBytes.clearAndPad(long length) |
Bytes<Void> |
HexDumpBytes.comment(CharSequence comment) |
Bytes<Underlying> |
Bytes.compact()
Compact these Bytes by moving the readPosition to the start.
|
Bytes<Underlying> |
UncheckedNativeBytes.compact() |
Bytes<Underlying> |
AbstractBytes.compact() |
Bytes |
HexDumpBytes.compact() |
static Bytes<ByteBuffer> |
Bytes.elasticByteBuffer() |
static Bytes<ByteBuffer> |
Bytes.elasticByteBuffer(int initialCapacity)
Returns an elastic wrapper for a direct ByteBuffer which will be resized as required, with
the given initial capacity.
|
static Bytes<ByteBuffer> |
Bytes.elasticByteBuffer(int initialCapacity,
int maxSize) |
static Bytes<ByteBuffer> |
Bytes.elasticHeapByteBuffer(int initialCapacity)
Returns an elastic wrapper for a heap ByteBuffer which will be resized as required, with
the given initial capacity.
|
static Bytes<byte[]> |
Bytes.from(CharSequence text)
Convert text to bytes using ISO-8859-1 encoding and return a Bytes ready for reading.
|
static Bytes |
Bytes.fromHexString(String s) |
static Bytes<byte[]> |
Bytes.fromString(String text) |
Bytes<Underlying> |
UncheckedNativeBytes.prewrite(byte[] bytes) |
Bytes<Underlying> |
AbstractBytes.prewrite(byte[] bytes) |
Bytes<Void> |
HexDumpBytes.prewrite(byte[] bytes) |
Bytes<Underlying> |
UncheckedNativeBytes.prewrite(BytesStore bytes) |
Bytes<Underlying> |
AbstractBytes.prewrite(BytesStore bytes) |
Bytes<Void> |
HexDumpBytes.prewrite(BytesStore bytes) |
Bytes<Underlying> |
UncheckedNativeBytes.prewriteByte(byte i8) |
Bytes<Underlying> |
AbstractBytes.prewriteByte(byte i8) |
Bytes<Void> |
HexDumpBytes.prewriteByte(byte b) |
Bytes<Underlying> |
UncheckedNativeBytes.prewriteInt(int i) |
Bytes<Underlying> |
AbstractBytes.prewriteInt(int i) |
Bytes<Void> |
HexDumpBytes.prewriteInt(int i) |
Bytes<Underlying> |
UncheckedNativeBytes.prewriteLong(long i64) |
Bytes<Underlying> |
AbstractBytes.prewriteLong(long l) |
Bytes<Void> |
HexDumpBytes.prewriteLong(long l) |
Bytes<Underlying> |
UncheckedNativeBytes.prewriteShort(short i16) |
Bytes<Underlying> |
AbstractBytes.prewriteShort(short i) |
Bytes<Void> |
HexDumpBytes.prewriteShort(short i) |
static Bytes |
BytesUtil.readFile(String name) |
Bytes<Underlying> |
UncheckedNativeBytes.readLimit(long limit) |
Bytes<Underlying> |
UncheckedBytes.readLimit(long limit) |
Bytes<Underlying> |
AbstractBytes.readLimit(long limit) |
Bytes<Void> |
HexDumpBytes.readLimit(long limit) |
Bytes<Void> |
MappedBytes.readPosition(long position) |
Bytes<Underlying> |
UncheckedNativeBytes.readPosition(long position) |
Bytes<Underlying> |
UncheckedBytes.readPosition(long position) |
Bytes<Underlying> |
AbstractBytes.readPosition(long position) |
Bytes<Void> |
HexDumpBytes.readPosition(long position) |
Bytes<Void> |
MappedBytes.readPositionRemaining(long position,
long remaining) |
Bytes<Void> |
MappedBytes.readSkip(long bytesToSkip) |
Bytes<Underlying> |
UncheckedNativeBytes.readSkip(long bytesToSkip) |
Bytes<Underlying> |
UncheckedBytes.readSkip(long bytesToSkip) |
Bytes<Underlying> |
AbstractBytes.readSkip(long bytesToSkip) |
Bytes<Void> |
HexDumpBytes.readSkip(long bytesToSkip) |
default Bytes<Underlying> |
Bytes.unchecked(boolean unchecked)
Return a Bytes which is optionally unchecked.
|
Bytes<Underlying> |
UncheckedNativeBytes.unchecked(boolean unchecked) |
Bytes<Underlying> |
UncheckedBytes.unchecked(boolean unchecked) |
static Bytes<byte[]> |
Bytes.wrapForRead(byte[] byteArray)
Wrap the byte[] ready for reading
Method for convenience only - might not be ideal for performance (creates garbage).
|
static Bytes<ByteBuffer> |
Bytes.wrapForRead(ByteBuffer byteBuffer)
Wrap the ByteBuffer ready for reading
Method for convenience only - might not be ideal for performance (creates garbage).
|
static Bytes<byte[]> |
Bytes.wrapForWrite(byte[] byteArray)
Wrap the byte[] ready for writing
Method for convenience only - might not be ideal for performance (creates garbage).
|
static Bytes<ByteBuffer> |
Bytes.wrapForWrite(ByteBuffer byteBuffer)
Wrap the ByteBuffer ready for writing
Method for convenience only - might not be ideal for performance (creates garbage).
|
Bytes<Underlying> |
UncheckedNativeBytes.write(byte[] bytes,
int offset,
int length) |
Bytes<Underlying> |
AbstractBytes.write(byte[] bytes,
int offset,
int length) |
Bytes<Void> |
HexDumpBytes.write(byte[] bytes,
int offset,
int length) |
Bytes<Underlying> |
NativeBytes.write(byte[] bytes,
int offset,
int length) |
Bytes<Underlying> |
UncheckedNativeBytes.write(BytesStore bytes) |
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) |
Bytes<Underlying> |
NativeBytes.write(BytesStore bytes,
long offset,
long length) |
Bytes<Underlying> |
UncheckedNativeBytes.write(long offsetInRDO,
byte[] bytes,
int offset,
int length) |
Bytes<Underlying> |
AbstractBytes.write(long offsetInRDO,
byte[] bytes,
int offset,
int length) |
Bytes<Void> |
HexDumpBytes.write(long offsetInRDO,
byte[] bytes,
int offset,
int length) |
Bytes<Underlying> |
UncheckedNativeBytes.write(long writeOffset,
RandomDataInput bytes,
long readOffset,
long length) |
Bytes<Underlying> |
AbstractBytes.write(long writeOffset,
RandomDataInput bytes,
long readOffset,
long length) |
Bytes<Void> |
HexDumpBytes.write(long writeOffset,
RandomDataInput bytes,
long readOffset,
long length) |
Bytes<Underlying> |
NativeBytes.write8bit(BytesStore bs) |
Bytes<Void> |
MappedBytes.writeByte(byte i8) |
Bytes<Underlying> |
UncheckedNativeBytes.writeByte(byte i8) |
Bytes<Underlying> |
AbstractBytes.writeByte(byte i8) |
Bytes<Void> |
HexDumpBytes.writeByte(byte i8) |
Bytes<Underlying> |
NativeBytes.writeByte(byte i8) |
Bytes<Underlying> |
UncheckedNativeBytes.writeByte(long offset,
byte i) |
Bytes<Underlying> |
AbstractBytes.writeByte(long offset,
byte i) |
Bytes<Void> |
HexDumpBytes.writeByte(long offset,
byte i8) |
Bytes<Underlying> |
UncheckedNativeBytes.writeDouble(double d) |
Bytes<Underlying> |
AbstractBytes.writeDouble(double d) |
Bytes<Void> |
HexDumpBytes.writeDouble(double d) |
Bytes<Underlying> |
UncheckedNativeBytes.writeDouble(long offset,
double d) |
Bytes<Underlying> |
AbstractBytes.writeDouble(long offset,
double d) |
Bytes<Void> |
HexDumpBytes.writeDouble(long offset,
double d) |
Bytes<Underlying> |
UncheckedNativeBytes.writeDoubleAndInt(double d,
int i) |
Bytes<Underlying> |
AbstractBytes.writeDoubleAndInt(double d,
int i) |
Bytes<Void> |
HexDumpBytes.writeDoubleAndInt(double d,
int i) |
Bytes<Underlying> |
UncheckedNativeBytes.writeFloat(float f) |
Bytes<Underlying> |
AbstractBytes.writeFloat(float f) |
Bytes<Void> |
HexDumpBytes.writeFloat(float f) |
Bytes<Underlying> |
UncheckedNativeBytes.writeFloat(long offset,
float d) |
Bytes<Underlying> |
AbstractBytes.writeFloat(long offset,
float d) |
Bytes<Void> |
HexDumpBytes.writeFloat(long offset,
float d) |
Bytes<Underlying> |
UncheckedNativeBytes.writeInt(int i) |
Bytes<Underlying> |
AbstractBytes.writeInt(int i) |
Bytes<Void> |
HexDumpBytes.writeInt(int i) |
Bytes<Underlying> |
UncheckedNativeBytes.writeInt(long offset,
int i) |
Bytes<Underlying> |
AbstractBytes.writeInt(long offset,
int i) |
Bytes<Void> |
HexDumpBytes.writeInt(long offset,
int i) |
Bytes<Void> |
HexDumpBytes.writeInt24(long offset,
int i) |
Bytes<Underlying> |
UncheckedNativeBytes.writeIntAdv(int i,
int advance) |
Bytes<Underlying> |
AbstractBytes.writeIntAdv(int i,
int advance) |
Bytes<Void> |
HexDumpBytes.writeIntAdv(int i,
int advance) |
Bytes<Underlying> |
UncheckedNativeBytes.writeLimit(long limit) |
Bytes<Underlying> |
UncheckedBytes.writeLimit(long limit) |
Bytes<Underlying> |
AbstractBytes.writeLimit(long limit) |
Bytes<Void> |
HexDumpBytes.writeLimit(long limit) |
Bytes<Underlying> |
UncheckedNativeBytes.writeLong(long i64) |
Bytes<Underlying> |
AbstractBytes.writeLong(long i64) |
Bytes<Void> |
HexDumpBytes.writeLong(long i64) |
Bytes<Underlying> |
NativeBytes.writeLong(long i64) |
Bytes<Underlying> |
UncheckedNativeBytes.writeLong(long offset,
long i) |
Bytes<Underlying> |
AbstractBytes.writeLong(long offset,
long i) |
Bytes<Void> |
HexDumpBytes.writeLong(long offset,
long i) |
Bytes<Underlying> |
UncheckedNativeBytes.writeLongAdv(long i64,
int advance) |
Bytes<Underlying> |
AbstractBytes.writeLongAdv(long i64,
int advance) |
Bytes<Void> |
HexDumpBytes.writeLongAdv(long i64,
int advance) |
Bytes<Underlying> |
UncheckedNativeBytes.writeOrderedInt(int i) |
Bytes<Underlying> |
AbstractBytes.writeOrderedInt(int i) |
Bytes<Void> |
HexDumpBytes.writeOrderedInt(int i) |
Bytes<Void> |
MappedBytes.writeOrderedInt(long offset,
int i) |
Bytes<Underlying> |
UncheckedNativeBytes.writeOrderedInt(long offset,
int i) |
Bytes<Underlying> |
AbstractBytes.writeOrderedInt(long offset,
int i) |
Bytes<Void> |
HexDumpBytes.writeOrderedInt(long offset,
int i) |
Bytes<Underlying> |
UncheckedNativeBytes.writeOrderedLong(long i) |
Bytes<Underlying> |
AbstractBytes.writeOrderedLong(long i) |
Bytes<Void> |
HexDumpBytes.writeOrderedLong(long i) |
Bytes<Underlying> |
UncheckedNativeBytes.writeOrderedLong(long offset,
long i) |
Bytes<Underlying> |
AbstractBytes.writeOrderedLong(long offset,
long i) |
Bytes<Void> |
HexDumpBytes.writeOrderedLong(long offset,
long i) |
Bytes<Void> |
MappedBytes.writePosition(long position) |
Bytes<Underlying> |
UncheckedNativeBytes.writePosition(long position) |
Bytes<Underlying> |
UncheckedBytes.writePosition(long position) |
Bytes<Underlying> |
AbstractBytes.writePosition(long position) |
Bytes<Void> |
HexDumpBytes.writePosition(long position) |
Bytes<Underlying> |
UncheckedNativeBytes.writeShort(long offset,
short i) |
Bytes<Underlying> |
AbstractBytes.writeShort(long offset,
short i) |
Bytes<Void> |
HexDumpBytes.writeShort(long offset,
short i) |
Bytes<Underlying> |
UncheckedNativeBytes.writeShort(short i16) |
Bytes<Underlying> |
AbstractBytes.writeShort(short i16) |
Bytes<Void> |
HexDumpBytes.writeShort(short i16) |
Bytes<Underlying> |
UncheckedNativeBytes.writeSkip(long bytesToSkip) |
Bytes<Underlying> |
UncheckedBytes.writeSkip(long bytesToSkip) |
Bytes<Underlying> |
AbstractBytes.writeSkip(long bytesToSkip) |
Bytes<Void> |
HexDumpBytes.writeSkip(long bytesToSkip) |
Bytes<Underlying> |
UncheckedNativeBytes.writeSome(ByteBuffer buffer) |
Bytes<Underlying> |
AbstractBytes.writeSome(ByteBuffer buffer) |
Bytes<Void> |
HexDumpBytes.writeSome(ByteBuffer buffer) |
Bytes<Void> |
MappedBytes.writeStopBit(char n) |
Bytes<Void> |
MappedBytes.writeStopBit(long n) |
Bytes<Void> |
MappedBytes.writeUtf8(CharSequence str) |
Bytes<Void> |
MappedBytes.writeUtf8(String str) |
Bytes<Underlying> |
UncheckedNativeBytes.writeVolatileByte(long offset,
byte i8) |
Bytes<Underlying> |
AbstractBytes.writeVolatileByte(long offset,
byte i8) |
Bytes<Void> |
HexDumpBytes.writeVolatileByte(long offset,
byte i8) |
Bytes<Underlying> |
UncheckedNativeBytes.writeVolatileInt(long offset,
int i32) |
Bytes<Underlying> |
AbstractBytes.writeVolatileInt(long offset,
int i32) |
Bytes<Void> |
HexDumpBytes.writeVolatileInt(long offset,
int i32) |
Bytes<Underlying> |
UncheckedNativeBytes.writeVolatileLong(long offset,
long i64) |
Bytes<Underlying> |
AbstractBytes.writeVolatileLong(long offset,
long i64) |
Bytes<Void> |
HexDumpBytes.writeVolatileLong(long offset,
long i64) |
Bytes<Underlying> |
UncheckedNativeBytes.writeVolatileShort(long offset,
short i16) |
Bytes<Underlying> |
AbstractBytes.writeVolatileShort(long offset,
short i16) |
Bytes<Void> |
HexDumpBytes.writeVolatileShort(long offset,
short i16) |
| Modifier and Type | Method and Description |
|---|---|
BytesStore<Bytes<Underlying>,Underlying> |
Bytes.copy() |
BytesStore<Bytes<Underlying>,Underlying> |
VanillaBytes.copy() |
BytesStore<Bytes<Void>,Void> |
MappedBytes.copy() |
BytesStore<Bytes<Underlying>,Underlying> |
UncheckedNativeBytes.copy() |
BytesStore<Bytes<Underlying>,Underlying> |
UncheckedBytes.copy() |
static BytesStore<Bytes<Void>,Void> |
NativeBytes.copyOf(Bytes bytes) |
| Modifier and Type | Method and Description |
|---|---|
void |
OffsetFormat.append(long offset,
Bytes bytes) |
static void |
BytesUtil.appendBytesFromStart(Bytes bytes,
long startPosition,
StringBuilder sb) |
default void |
BytesStore.cipher(Cipher cipher,
Bytes outBytes) |
default void |
BytesStore.cipher(Cipher cipher,
Bytes outBytes,
ByteBuffer using1,
ByteBuffer using2) |
static BytesStore<Bytes<Void>,Void> |
NativeBytes.copyOf(Bytes bytes) |
boolean |
UncheckedNativeBytes.equalsBytes(Bytes b2,
long remaining) |
default long |
Bytes.indexOf(Bytes source)
Returns the index within this bytes of the first occurrence of the
specified sub-bytes.
|
default long |
Bytes.indexOf(Bytes source,
int fromIndex)
Deprecated.
|
static void |
AppendableUtil.parse8bit_SB1(Bytes bytes,
StringBuilder sb,
int utflen) |
default void |
StreamingDataInput.read(Bytes bytes,
int length) |
default boolean |
StreamingDataInput.read8bit(Bytes b) |
default void |
StreamingDataInput.readWithLength(Bytes bytes) |
static char[] |
BytesUtil.toCharArray(Bytes bytes) |
static char[] |
BytesUtil.toCharArray(Bytes bytes,
long position,
int length) |
static String |
Bytes.toString(Bytes<?> buffer)
Creates a string from the
position to the limit, The buffer is not modified
by this call |
static String |
Bytes.toString(Bytes<?> buffer,
long maxLen)
Creates a string from the
position to the limit, The buffer is not modified
by this call |
static String |
Bytes.toString(Bytes buffer,
long position,
long len)
The buffer is not modified by this call
|
static boolean |
BytesUtil.unregister(Bytes bytes) |
default S |
StreamingDataOutput.writeSome(Bytes bytes) |
NativeBytes |
NativeBytes.writeSome(Bytes bytes) |
| Modifier and Type | Method and Description |
|---|---|
void |
VanillaBytes.bytesStore(BytesStore<Bytes<Underlying>,Underlying> byteStore,
long offset,
long length) |
boolean |
BytesRingBuffer.offer(Consumer<Bytes> consumer) |
| Constructor and Description |
|---|
UncheckedBytes(Bytes underlyingBytes) |
UncheckedNativeBytes(Bytes<Underlying> underlyingBytes) |
| Modifier and Type | Method and Description |
|---|---|
Bytes |
BytesPool.acquireBytes() |
protected Bytes |
BytesPool.createBytes() |
| Modifier and Type | Method and Description |
|---|---|
static void |
BinaryLongArrayReference.lazyWrite(Bytes bytes,
long capacity) |
static void |
TextIntReference.write(Bytes bytes,
int value) |
static void |
BinaryLongArrayReference.write(Bytes bytes,
long capacity) |
static void |
TextLongArrayReference.write(Bytes bytes,
long capacity) |
static void |
TextLongReference.write(Bytes bytes,
long value) |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
Compression.compress(CharSequence cs,
Bytes uncompressed,
Bytes compressed) |
static <T> void |
Compression.compress(CharSequence cs,
Bytes uncompressed,
Bytes compressed) |
T |
AbstractInterner.intern(Bytes cs) |
String |
StringInternerBytes.intern(Bytes bytes) |
T |
AbstractInterner.intern(Bytes cs,
int length) |
String |
StringInternerBytes.intern(Bytes bytes,
int length)
converts the bytes to a ISO-8859-1 String, the end of the string is either the bytes .limit
() or a byte containing the stopByte ( which ever comes first ).
|
Copyright © 2018. All rights reserved.