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, wait
addAndGetInt, addAndGetLong, byteCheckSum, bytesForRead, bytesForWrite, bytesStore, charAt, copyTo, equalBytes, getAndAddInt, inside, isClear, length, nativePointer, realCapacity, safeLimit, subSequence, toDebugString, wrap, wrap, zeroOut
bytesEqual, copyTo, createCharToString, parseLong, printable, readBoolean, readIncompleteLong, readUnsignedByte, readUnsignedInt, readUnsignedShort, readVolatileInt, readVolatileLong
append, write, write, writeBoolean, writeByte, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort
close, releaseAll, tryReserve
chars, codePoints, toString
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>
public Underlying underlyingObject()
underlyingObject
in interface BytesStore<B extends BytesStore<B,Underlying>,Underlying>
public void nativeWrite(long address, long position, long size)
RandomDataOutput
nativeWrite
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)
RandomDataInput
nativeRead
in interface RandomDataInput
position
- 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 RandomDataInput
public short readShort(long offset)
readShort
in interface RandomDataInput
public int readInt(long offset)
readInt
in interface RandomDataInput
public long readLong(long offset)
readLong
in interface RandomDataInput
public float readFloat(long offset)
readFloat
in interface RandomDataInput
public double readDouble(long offset)
readDouble
in interface RandomDataInput
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 heappublic B writeShort(long offset, short i)
writeShort
in interface RandomDataOutput<B extends BytesStore<B,Underlying>>
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.ReferenceCounted
IllegalStateException
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.ReferenceCounted
IllegalStateException
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
public B writeOrderedLong(long offset, long i)
writeOrderedLong
in interface RandomDataOutput<B extends BytesStore<B,Underlying>>
public B writeFloat(long offset, float d)
writeFloat
in interface RandomDataOutput<B extends BytesStore<B,Underlying>>
public B writeDouble(long offset, double d)
writeDouble
in interface RandomDataOutput<B extends BytesStore<B,Underlying>>
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>>
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.