public class ExpectedBytesStore<B extends BytesStore<B,Underlying>,Underlying> extends Object implements BytesStore<B,Underlying>
charToString| Modifier and Type | Method and Description |
|---|---|
long |
address(long offset)
Obtain the underlying address.
|
default ByteOrder |
byteOrder() |
long |
capacity() |
boolean |
compareAndSwapInt(long offset,
int expected,
int value) |
boolean |
compareAndSwapLong(long offset,
long expected,
long value) |
BytesStore<B,Underlying> |
copy() |
void |
nativeRead(long position,
long address,
long size)
expert level method for copying data to native memory.
|
void |
nativeWrite(long address,
long position,
long size)
expert level method to copy data from native memory into the BytesStore
|
byte |
readByte(long offset) |
double |
readDouble(long offset) |
float |
readFloat(long offset) |
int |
readInt(long offset) |
default long |
readLimit() |
long |
readLong(long offset) |
default long |
readPosition() |
default long |
readRemaining() |
short |
readShort(long offset) |
long |
refCount() |
void |
release() |
void |
reserve() |
default long |
start() |
Underlying |
underlyingObject() |
B |
write(long offsetInRDO,
byte[] bytes,
int offset,
int length) |
void |
write(long offsetInRDO,
ByteBuffer bytes,
int offset,
int length) |
B |
write(long offsetInRDO,
RandomDataInput bytes,
long offset,
long length) |
B |
writeByte(long offset,
byte i8) |
B |
writeDouble(long offset,
double d) |
B |
writeFloat(long offset,
float d) |
B |
writeInt(long offset,
int i) |
default long |
writeLimit() |
B |
writeLong(long offset,
long i) |
B |
writeOrderedInt(long offset,
int i) |
B |
writeOrderedLong(long offset,
long i) |
default long |
writePosition() |
default long |
writeRemaining() |
B |
writeShort(long offset,
short i) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAndGetInt, addAndGetLong, byteCheckSum, bytesForRead, bytesForWrite, bytesStore, charAt, copyTo, equalBytes, getAndAddInt, inside, isClear, length, nativePointer, realCapacity, safeLimit, subSequence, toDebugString, wrap, wrap, zeroOutbytesEqual, copyTo, createCharToString, parseLong, printable, readBoolean, readIncompleteLong, readUnsignedByte, readUnsignedInt, readUnsignedShort, readVolatileInt, readVolatileLongappend, write, write, writeBoolean, writeByte, writeUnsignedByte, writeUnsignedInt, writeUnsignedShortclose, release, releaseAll, tryReservechars, codePoints, toString@NotNull public BytesStore<B,Underlying> copy()
copy in interface BytesStore<B extends BytesStore<B,Underlying>,Underlying>public long capacity()
capacity in interface BytesStore<B extends BytesStore<B,Underlying>,Underlying>@Nullable public Underlying underlyingObject()
underlyingObject in interface BytesStore<B extends BytesStore<B,Underlying>,Underlying>public void nativeWrite(long address,
long position,
long size)
RandomDataOutputnativeWrite in interface RandomDataOutput<B extends BytesStore<B,Underlying>>address - in native memory to copy fromposition - in BytesStore to copy tosize - in bytespublic void nativeRead(long position,
long address,
long size)
RandomDataInputnativeRead in interface RandomDataInputposition - within the ByteStore to copy.address - in native memorysize - in bytespublic boolean compareAndSwapInt(long offset,
int expected,
int value)
compareAndSwapInt in interface BytesStore<B extends BytesStore<B,Underlying>,Underlying>public boolean compareAndSwapLong(long offset,
long expected,
long value)
compareAndSwapLong in interface BytesStore<B extends BytesStore<B,Underlying>,Underlying>public byte readByte(long offset)
readByte in interface RandomDataInputpublic short readShort(long offset)
readShort in interface RandomDataInputpublic int readInt(long offset)
readInt in interface RandomDataInputpublic long readLong(long offset)
readLong in interface RandomDataInputpublic float readFloat(long offset)
readFloat in interface RandomDataInputpublic double readDouble(long offset)
readDouble in interface RandomDataInput@NotNull public B writeByte(long offset, byte i8)
writeByte in interface RandomDataOutput<B extends BytesStore<B,Underlying>>public long address(long offset)
throws UnsupportedOperationException
offset - within this buffer. address(start()) is the actual address of the first byte.UnsupportedOperationException - if the underlying buffer is on the heap@NotNull public B writeShort(long offset, short i)
writeShort in interface RandomDataOutput<B extends BytesStore<B,Underlying>>@NotNull public B writeInt(long offset, int i)
writeInt in interface RandomDataOutput<B extends BytesStore<B,Underlying>>public void reserve()
throws IllegalStateException
reserve in interface net.openhft.chronicle.core.ReferenceCountedIllegalStateException@NotNull public B writeOrderedInt(long offset, int i)
writeOrderedInt in interface RandomDataOutput<B extends BytesStore<B,Underlying>>public void release()
throws IllegalStateException
release in interface net.openhft.chronicle.core.ReferenceCountedIllegalStateException@NotNull public B writeLong(long offset, long i)
writeLong in interface RandomDataOutput<B extends BytesStore<B,Underlying>>public long refCount()
refCount in interface net.openhft.chronicle.core.ReferenceCounted@NotNull public B writeOrderedLong(long offset, long i)
writeOrderedLong in interface RandomDataOutput<B extends BytesStore<B,Underlying>>@NotNull public B writeFloat(long offset, float d)
writeFloat in interface RandomDataOutput<B extends BytesStore<B,Underlying>>@NotNull public B writeDouble(long offset, double d)
writeDouble in interface RandomDataOutput<B extends BytesStore<B,Underlying>>@NotNull public B write(long offsetInRDO, byte[] bytes, int offset, int length)
write in interface RandomDataOutput<B extends BytesStore<B,Underlying>>public void write(long offsetInRDO,
ByteBuffer bytes,
int offset,
int length)
write in interface RandomDataOutput<B extends BytesStore<B,Underlying>>@NotNull public B write(long offsetInRDO, RandomDataInput bytes, long offset, long length)
write in interface RandomDataOutput<B extends BytesStore<B,Underlying>>public long start()
public long readPosition()
public long writePosition()
public long readRemaining()
public long writeRemaining()
public long readLimit()
public long writeLimit()
public ByteOrder byteOrder()
Copyright © 2015. All rights reserved.