| Package | Description |
|---|---|
| net.openhft.chronicle.bytes | |
| net.openhft.chronicle.bytes.util |
| Modifier and Type | Class and Description |
|---|---|
class |
ConnectionDroppedException
thrown when the TcpChannelHub drops its connection to the server
|
class |
UTFDataFormatRuntimeException |
| Modifier and Type | Method and Description |
|---|---|
default double |
RandomDataInput.addAndGetDouble(long offset,
double adding)
Perform an atomic add and get operation for a 64-bit double
|
default float |
RandomDataInput.addAndGetFloat(long offset,
float adding)
Perform an atomic add and get operation for a 32-bit float
|
default int |
RandomDataInput.addAndGetInt(long offset,
int adding)
Perform an atomic add and get operation for a 32-bit int
|
default long |
RandomDataInput.addAndGetLong(long offset,
long adding)
Perform an atomic add and get operation for a 64-bit long
|
static void |
AppendableUtil.append(Appendable sb,
double value) |
static void |
AppendableUtil.append(Appendable sb,
long value) |
default B |
ByteStringAppender.append(double d)
Append a double in decimal notation
|
default B |
ByteStringAppender.append(float f)
Append a float in decimal notation
|
default B |
ByteStringAppender.append(long value)
Append a long in decimal
|
default R |
RandomDataOutput.append(long offset,
long value,
int digits) |
Bytes<Underlying> |
UncheckedBytes.append8bit(CharSequence cs) |
Bytes<Underlying> |
UncheckedNativeBytes.append8bit(CharSequence cs) |
default B |
ByteStringAppender.append8bit(CharSequence cs)
Append a String to the Bytes in ISO-8859-1
|
default B |
ByteStringAppender.append8bit(CharSequence cs,
int start,
int end)
Append a portion of a String to the Bytes in ISO-8859-1
|
VanillaBytes<Underlying> |
VanillaBytes.appendUtf8(char[] chars,
int offset,
int length) |
default S |
StreamingDataOutput.appendUtf8(char[] chars,
int offset,
int length) |
default S |
StreamingDataOutput.appendUtf8(CharSequence cs) |
default S |
StreamingDataOutput.appendUtf8(CharSequence cs,
int offset,
int length) |
default S |
StreamingDataOutput.appendUtf8(int codepoint) |
int |
UncheckedNativeBytes.byteCheckSum() |
int |
VanillaBytes.byteCheckSum() |
default int |
BytesStore.byteCheckSum()
Return the bytes sum of the readable bytes.
|
static boolean |
BytesUtil.bytesEqual(RandomDataInput a,
long offset,
RandomDataInput second,
long secondOffset,
long len) |
boolean |
AbstractBytes.compareAndSwapInt(long offset,
int expected,
int value) |
boolean |
AbstractBytes.compareAndSwapLong(long offset,
long expected,
long value) |
default boolean |
BytesStore.contentEquals(BytesStore bytesStore)
Compare the contents of the BytesStores.
|
default int |
RandomDataInput.copyTo(byte[] bytes)
Read a byte[] from memory.
|
default void |
BytesStore.copyTo(BytesStore store)
Copy the data to another BytesStore
|
default boolean |
BytesStore.endsWith(char c)
Does the BytesStore end with a character?
|
void |
NativeBytes.ensureCapacity(long size) |
default void |
Bytes.ensureCapacity(long size)
grow the buffer if the buffer is elastic, if the buffer is not elastic and there is not
enough capacity then this method will throws
BufferOverflowException |
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 |
AbstractBytes.equalsBytes(Bytes b2,
long remaining) |
boolean |
StopCharTester.isStopChar(int ch)
Detect which byte stops the string to be parsed
|
boolean |
StopCharsTester.isStopChar(int ch,
int ch2)
Detect which byte or bytes stops the string to be parsed
|
default long |
BytesStore.longCheckSum()
Return the long sum of the readable bytes.
|
void |
AbstractBytes.nativeRead(long address,
long size) |
void |
StreamingDataInput.nativeRead(long address,
long size)
This is an expert level method for copying raw native memory in bulk.
|
void |
AbstractBytes.nativeWrite(long address,
long size) |
void |
StreamingDataOutput.nativeWrite(long address,
long size)
This is an expert level method for writing out data to native memory.
|
static void |
AppendableUtil.parse8bit_SB1(Bytes bytes,
StringBuilder sb,
int utflen) |
static void |
AppendableUtil.parse8bit(StreamingDataInput bytes,
Appendable appendable,
int utflen) |
default long |
RandomDataInput.parseLong(long offset) |
int |
AbstractBytes.peekUnsignedByte() |
int |
StreamingDataInput.peekUnsignedByte() |
default B |
BytesPrepender.prepend(long value)
Prepends a long in decimal, this method moves the readPosition() backwards.
|
Bytes<Underlying> |
AbstractBytes.prewriteByte(byte i8) |
protected long |
UncheckedBytes.prewriteOffsetPositionMoved(long subtracting) |
protected long |
AbstractBytes.prewriteOffsetPositionMoved(long subtracting) |
default String |
RandomDataInput.printable(long offset)
Read the byte at an offset and converts it into a printable
|
void |
UncheckedBytes.rawCopy(BytesStore bytes,
long offset,
long length) |
default int |
StreamingDataInput.read(byte[] bytes) |
default int |
StreamingDataInput.read(byte[] bytes,
int off,
int len) |
default void |
StreamingDataInput.read(ByteBuffer buffer) |
default int |
StreamingDataInput.read(char[] bytes,
int off,
int len) |
default String |
StreamingDataInput.read8bit() |
default <ACS extends Appendable & CharSequence> |
StreamingDataInput.read8bit(ACS sb) |
default boolean |
StreamingDataInput.read8bit(Bytes b) |
default boolean |
StreamingDataInput.read8bit(StringBuilder sb) |
static void |
AppendableUtil.read8bitAndAppend(StreamingDataInput bytes,
StringBuilder appendable,
StopCharsTester tester) |
default boolean |
StreamingDataInput.readBoolean() |
default boolean |
RandomDataInput.readBoolean(long offset)
Read boolean at an offset
|
byte |
AbstractBytes.readByte() |
byte |
StreamingDataInput.readByte() |
byte |
AbstractBytes.readByte(long offset) |
byte |
RandomDataInput.readByte(long offset)
Read byte at an offset
|
protected void |
MappedBytes.readCheckOffset(long offset,
long adding) |
double |
AbstractBytes.readDouble() |
double |
StreamingDataInput.readDouble() |
double |
AbstractBytes.readDouble(long offset) |
double |
RandomDataInput.readDouble(long offset)
Read a double at an offset
|
default <E extends Enum<E>> |
StreamingDataInput.readEnum(Class<E> eClass) |
float |
AbstractBytes.readFloat() |
float |
StreamingDataInput.readFloat() |
float |
AbstractBytes.readFloat(long offset) |
float |
RandomDataInput.readFloat(long offset)
Read a float at an offset
|
long |
NativeBytes.readIncompleteLong(long offset) |
default long |
RandomDataInput.readIncompleteLong(long offset)
Read a long which is zero padded (high bytes) if the available bytes is less than 8.
|
int |
AbstractBytes.readInt() |
int |
StreamingDataInput.readInt() |
int |
AbstractBytes.readInt(long offset) |
int |
RandomDataInput.readInt(long offset)
Read an int at an offset
|
long |
AbstractBytes.readLong() |
long |
StreamingDataInput.readLong() |
long |
AbstractBytes.readLong(long offset) |
long |
RandomDataInput.readLong(long offset)
Read a long at an offset
|
protected long |
AbstractBytes.readOffsetPositionMoved(long adding) |
short |
AbstractBytes.readShort() |
short |
StreamingDataInput.readShort() |
short |
AbstractBytes.readShort(long offset) |
short |
RandomDataInput.readShort(long offset)
Read a short at an offset
|
Bytes<Underlying> |
AbstractBytes.readSkip(long bytesToSkip) |
S |
StreamingDataInput.readSkip(long bytesToSkip)
Skip a number of bytes by moving the readPosition.
|
default long |
StreamingDataInput.readStopBit() |
default double |
StreamingDataInput.readStopBitDouble() |
int |
AbstractBytes.readUnsignedByte() |
int |
StreamingDataInput.readUnsignedByte() |
default int |
RandomDataInput.readUnsignedByte(long offset)
Read an unsigned byte at an offset
|
default long |
StreamingDataInput.readUnsignedInt() |
default long |
RandomDataInput.readUnsignedInt(long offset)
Read an unsigned int at an offset
|
default int |
StreamingDataInput.readUnsignedShort() |
default int |
RandomDataInput.readUnsignedShort(long offset)
Read an unsigned short at an offset
|
default String |
StreamingDataInput.readUtf8()
The same as readUTF() except the length is stop bit encoded.
|
default <ACS extends Appendable & CharSequence> |
StreamingDataInput.readUtf8(ACS sb)
The same as readUtf8() except the chars are copied to a truncated StringBuilder.
|
default <ACS extends Appendable & CharSequence> |
RandomDataInput.readUtf8(long offset,
ACS sb)
Truncates
sb (it must be a StringBuilder or Bytes) and reads a char
sequence from the given offset, encoded as Utf8, into it. |
default <ACS extends Appendable & CharSequence> |
RandomDataInput.readUtf8Limited(long offset,
ACS sb,
int maxUtf8Len)
Truncates
sb (it must be a StringBuilder or Bytes) and reads a char
sequence from the given offset, encoded as Utf8, into it. |
default String |
RandomDataInput.readUtf8Limited(long offset,
int maxUtf8Len)
Reads a char sequence from the given
offset, encoded as Utf8. |
default String |
StreamingDataInput.readUTFΔ()
Deprecated.
|
default <ACS extends Appendable & CharSequence> |
StreamingDataInput.readUTFΔ(ACS sb)
Deprecated.
|
byte |
NativeBytes.readVolatileByte(long offset) |
default byte |
RandomDataInput.readVolatileByte(long offset)
Read a 8-bit byte from memory with a load barrier.
|
default double |
RandomDataInput.readVolatileDouble(long offset)
Read a 64-bit double from memory with a load barrier.
|
default float |
RandomDataInput.readVolatileFloat(long offset)
Read a float from memory with a load barrier.
|
int |
AbstractBytes.readVolatileInt() |
int |
StreamingDataInput.readVolatileInt() |
int |
NativeBytes.readVolatileInt(long offset) |
default int |
RandomDataInput.readVolatileInt(long offset)
Read a 32-bit int from memory with a load barrier.
|
long |
AbstractBytes.readVolatileLong() |
long |
StreamingDataInput.readVolatileLong() |
long |
NativeBytes.readVolatileLong(long offset) |
default long |
RandomDataInput.readVolatileLong(long offset)
Read a 64-bit long from memory with a load barrier.
|
short |
NativeBytes.readVolatileShort(long offset) |
default short |
RandomDataInput.readVolatileShort(long offset)
Read a 16-bit short from memory with a load barrier.
|
static void |
AppendableUtil.setCharAt(Appendable sb,
int index,
char ch) |
default boolean |
BytesStore.startsWith(char c)
Does the BytesStore start with a character?
|
default String |
BytesStore.to8bitString() |
default byte[] |
StreamingDataInput.toByteArray() |
default String |
Bytes.toHexString()
display the hex data of
Bytes from the position() to the limit() |
default String |
Bytes.toHexString(long maxLength)
display the hex data of
Bytes from the position() to the limit() |
default String |
Bytes.toHexString(long offset,
long maxLength)
display the hex data of
Bytes from the position() to the limit() |
static String |
Bytes.toString(Bytes buffer,
long position,
long len)
The buffer is not modified by this call
|
default S |
StreamingDataOutput.write(byte[] bytes) |
Bytes<Underlying> |
NativeBytes.write(byte[] bytes,
int offset,
int length) |
Bytes<Underlying> |
AbstractBytes.write(byte[] bytes,
int offset,
int length) |
S |
StreamingDataOutput.write(byte[] bytes,
int offset,
int length) |
Bytes<Underlying> |
AbstractBytes.write(ByteBuffer buffer) |
S |
StreamingDataOutput.write(ByteBuffer buffer) |
default S |
StreamingDataOutput.write(BytesStore bytes) |
Bytes<Underlying> |
UncheckedBytes.write(BytesStore bytes,
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.write(CharSequence cs) |
default S |
StreamingDataOutput.write(CharSequence s,
int start,
int length) |
default R |
RandomDataOutput.write(long offsetInRDO,
byte[] bytes) |
B |
ExpectedBytesStore.write(long offsetInRDO,
byte[] bytes,
int offset,
int length) |
Bytes<Underlying> |
AbstractBytes.write(long offsetInRDO,
byte[] bytes,
int offset,
int length) |
R |
RandomDataOutput.write(long offsetInRDO,
byte[] bytes,
int offset,
int length) |
void |
AbstractBytes.write(long offsetInRDO,
ByteBuffer bytes,
int offset,
int length) |
void |
RandomDataOutput.write(long offsetInRDO,
ByteBuffer bytes,
int offset,
int length) |
default R |
RandomDataOutput.write(long offsetInRDO,
Bytes bytes) |
void |
VanillaBytes.write(long position,
CharSequence str,
int offset,
int length) |
Bytes<Underlying> |
UncheckedNativeBytes.write(long offsetInRDO,
RandomDataInput bytes,
long offset,
long length) |
Bytes<Underlying> |
AbstractBytes.write(long offsetInRDO,
RandomDataInput bytes,
long offset,
long length) |
NativeBytesStore<Underlying> |
NativeBytesStore.write(long offsetInRDO,
RandomDataInput bytes,
long offset,
long length) |
R |
RandomDataOutput.write(long offsetInRDO,
RandomDataInput bytes,
long offset,
long length) |
default S |
StreamingDataOutput.write8bit(BytesStore sdi) |
default S |
StreamingDataOutput.write8bit(CharSequence cs) |
Bytes<Underlying> |
VanillaBytes.write8bit(CharSequence str,
int offset,
int length) |
default S |
StreamingDataOutput.write8bit(CharSequence s,
int start,
int length) |
default S |
StreamingDataOutput.write8bit(String s) |
default S |
StreamingDataOutput.writeBoolean(boolean flag) |
default R |
RandomDataOutput.writeBoolean(long offset,
boolean flag)
Write a boolean at an offset.
|
Bytes<Underlying> |
AbstractBytes.writeByte(byte i8) |
S |
StreamingDataOutput.writeByte(byte i8) |
Bytes<Underlying> |
AbstractBytes.writeByte(long offset,
byte i) |
R |
RandomDataOutput.writeByte(long offset,
byte i8)
Write an unsigned byte at an offset.
|
default R |
RandomDataOutput.writeByte(long offset,
int i)
Write a byte at an offset.
|
protected void |
MappedBytes.writeCheckOffset(long offset,
long adding) |
protected void |
NativeBytes.writeCheckOffset(long offset,
long adding) |
Bytes<Underlying> |
AbstractBytes.writeDouble(double d) |
S |
StreamingDataOutput.writeDouble(double d) |
B |
ExpectedBytesStore.writeDouble(long offset,
double d) |
Bytes<Underlying> |
AbstractBytes.writeDouble(long offset,
double d) |
R |
RandomDataOutput.writeDouble(long offset,
double d)
Write a double at an offset.
|
default <E extends Enum<E>> |
StreamingDataOutput.writeEnum(E e) |
Bytes<Underlying> |
AbstractBytes.writeFloat(float f) |
S |
StreamingDataOutput.writeFloat(float f) |
B |
ExpectedBytesStore.writeFloat(long offset,
float d) |
Bytes<Underlying> |
AbstractBytes.writeFloat(long offset,
float d) |
R |
RandomDataOutput.writeFloat(long offset,
float d)
Write a float at an offset.
|
Bytes<Underlying> |
AbstractBytes.writeInt(int i) |
S |
StreamingDataOutput.writeInt(int i) |
B |
ExpectedBytesStore.writeInt(long offset,
int i) |
Bytes<Underlying> |
AbstractBytes.writeInt(long offset,
int i) |
R |
RandomDataOutput.writeInt(long offset,
int i)
Write an int at an offset.
|
Bytes<Underlying> |
AbstractBytes.writeLong(long i64) |
S |
StreamingDataOutput.writeLong(long i64) |
B |
ExpectedBytesStore.writeLong(long offset,
long i) |
Bytes<Underlying> |
AbstractBytes.writeLong(long offset,
long i) |
R |
RandomDataOutput.writeLong(long offset,
long i)
Write a long at an offset.
|
protected long |
AbstractBytes.writeOffsetPositionMoved(long adding) |
default R |
RandomDataOutput.writeOrderedDouble(long offset,
double d)
Perform a non stalling write with a store barrier.
|
default R |
RandomDataOutput.writeOrderedFloat(long offset,
float f)
Perform a non stalling write with a store barrier.
|
Bytes<Underlying> |
AbstractBytes.writeOrderedInt(int i) |
S |
StreamingDataOutput.writeOrderedInt(int i) |
B |
ExpectedBytesStore.writeOrderedInt(long offset,
int i) |
Bytes<Underlying> |
AbstractBytes.writeOrderedInt(long offset,
int i) |
R |
RandomDataOutput.writeOrderedInt(long offset,
int i)
Perform a non stalling write with a store barrier.
|
Bytes<Underlying> |
AbstractBytes.writeOrderedLong(long i) |
S |
StreamingDataOutput.writeOrderedLong(long i) |
B |
ExpectedBytesStore.writeOrderedLong(long offset,
long i) |
Bytes<Underlying> |
AbstractBytes.writeOrderedLong(long offset,
long i) |
R |
RandomDataOutput.writeOrderedLong(long offset,
long i)
Perform a non stalling write with a store barrier.
|
B |
ExpectedBytesStore.writeShort(long offset,
short i) |
Bytes<Underlying> |
AbstractBytes.writeShort(long offset,
short i) |
R |
RandomDataOutput.writeShort(long offset,
short i)
Write a short at an offset.
|
Bytes<Underlying> |
AbstractBytes.writeShort(short i16) |
S |
StreamingDataOutput.writeShort(short i16) |
Bytes<Underlying> |
AbstractBytes.writeSkip(long bytesToSkip) |
S |
StreamingDataOutput.writeSkip(long bytesToSkip)
Skip a number of bytes by moving the readPosition.
|
default S |
StreamingDataOutput.writeStopBit(double d) |
default S |
StreamingDataOutput.writeStopBit(long x)
Write a stop bit encoded long
|
default S |
StreamingDataOutput.writeUnsignedByte(int i) |
default R |
RandomDataOutput.writeUnsignedByte(long offset,
int i)
Write an unsigned byte at an offset.
|
default S |
StreamingDataOutput.writeUnsignedInt(long i) |
default R |
RandomDataOutput.writeUnsignedInt(long offset,
long i)
Write an unsigned byte at an offset.
|
default S |
StreamingDataOutput.writeUnsignedShort(int u16) |
default R |
RandomDataOutput.writeUnsignedShort(long offset,
int i)
Write an unsigned byte at an offset.
|
default S |
StreamingDataOutput.writeUtf8(CharSequence cs)
Write the same encoding as
writeUTF with the following changes. |
default long |
RandomDataOutput.writeUtf8(long offset,
CharSequence cs)
Writes the given
cs to this RandomDataOutput from the given offset,
in Utf8 format. |
default long |
RandomDataOutput.writeUtf8Limited(long offset,
CharSequence cs,
int maxUtf8Len)
Writes the given
cs to this RandomDataOutput from the given offset,
in Utf8 format, checking that the utf8 encoding size of the given char sequence is less or
equal to the given maxUtf8Len, otherwise IllegalArgumentException is thrown,
and no bytes of this RandomDataOutput are overwritten. |
default S |
StreamingDataOutput.writeUTFΔ(CharSequence cs)
Deprecated.
|
B |
ExpectedBytesStore.writeVolatileByte(long offset,
byte i8) |
Bytes<Underlying> |
AbstractBytes.writeVolatileByte(long offset,
byte i8) |
R |
RandomDataOutput.writeVolatileByte(long offset,
byte i8) |
default R |
RandomDataOutput.writeVolatileDouble(long offset,
double d) |
default R |
RandomDataOutput.writeVolatileFloat(long offset,
float f) |
B |
ExpectedBytesStore.writeVolatileInt(long offset,
int i32) |
Bytes<Underlying> |
AbstractBytes.writeVolatileInt(long offset,
int i32) |
R |
RandomDataOutput.writeVolatileInt(long offset,
int i32) |
B |
ExpectedBytesStore.writeVolatileLong(long offset,
long i64) |
Bytes<Underlying> |
AbstractBytes.writeVolatileLong(long offset,
long i64) |
R |
RandomDataOutput.writeVolatileLong(long offset,
long i64) |
B |
ExpectedBytesStore.writeVolatileShort(long offset,
short i16) |
Bytes<Underlying> |
AbstractBytes.writeVolatileShort(long offset,
short i16) |
R |
RandomDataOutput.writeVolatileShort(long offset,
short i16) |
R |
RandomDataOutput.zeroOut(long start,
long end)
Zero out the bytes between the start and the end.
|
default B |
BytesStore.zeroOut(long start,
long end)
Fill the BytesStore with zeros
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
EscapingStopCharTester.isStopChar(int ch) |
boolean |
EscapingStopCharsTester.isStopChar(int ch,
int ch2) |
Copyright © 2015. All rights reserved.