public class MappedBytesStore extends NativeBytesStore<Void>
address, maximumLimit, memory, releasedHerecharToString| Modifier | Constructor and Description |
|---|---|
protected |
MappedBytesStore(net.openhft.chronicle.core.ReferenceCounted owner,
long start,
long address,
long capacity,
long safeCapacity) |
| Modifier and Type | Method and Description |
|---|---|
default ByteOrder |
byteOrder() |
VanillaBytes<Void> |
bytesForWrite() |
default boolean |
compareAndSwapDouble(long offset,
double expected,
double value)
Perform a 64-bit double CAS at a given offset.
|
default boolean |
compareAndSwapFloat(long offset,
float expected,
float value)
Perform a 32-bit float CAS at a given offset.
|
boolean |
inside(long offset)
Use this test to determine if an offset is considered safe.
|
byte |
readByte(long offset)
Read byte at an offset
|
default long |
readLimit() |
long |
safeLimit() |
long |
start() |
protected long |
translate(long offset) |
default long |
writeLimit() |
NativeBytesStore<Void> |
writeOrderedInt(long offset,
int i)
Perform a non stalling write with a store barrier.
|
default long |
writePosition()
The read position must be readPosition() <= writePosition() && writePosition() <= writeLimit()
|
default long |
writeRemaining() |
address, appendUTF, appendUtf8, byteCheckSum, byteCheckSum, capacity, checkReleased, compareAndSwapInt, compareAndSwapLong, copy, copyTo, copyToDirect, elasticByteBuffer, elasticByteBuffer, equals, fastHash, from, from, init, isDirectMemory, lazyNativeBytesStoreWithFixedCapacity, move, nativeRead, nativeStore, nativeStoreWithFixedCapacity, nativeWrite, peekUnsignedByte, read, readDouble, readFloat, readIncompleteLong, readInt, readLong, readShort, readVolatileByte, readVolatileInt, readVolatileLong, readVolatileShort, realCapacity, refCount, release, reserve, setAddress, sharedMemory, toString, toTemporaryDirectByteBuffer, underlyingObject, uninit, uninitialized, wrap, write, write, write, write0, writeByte, writeDouble, writeFloat, writeInt, writeLong, writeOrderedLong, writeShort, writeVolatileByte, writeVolatileInt, writeVolatileLong, writeVolatileShort, zeroOuthashCode, readPosition, readRemainingclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAndGetByteNotAtomic, addAndGetDoubleNotAtomic, addAndGetFloatNotAtomic, addAndGetIntNotAtomic, addAndGetLongNotAtomic, addAndGetShortNotAtomic, addAndGetUnsignedByteNotAtomic, addAndGetUnsignedIntNotAtomic, addAndGetUnsignedShortNotAtomic, bytesForRead, bytesStore, charAt, cipher, cipher, contentEquals, copyTo, empty, endsWith, equalBytes, from, isClear, isEmpty, isPresent, isPresent, length, longCheckSum, nativePointer, readWrite, startsWith, startsWith, subSequence, to8bitString, toDebugString, toDebugString, wrap, wrap, writeMaxLongaddAndGetDouble, addAndGetFloat, addAndGetInt, addAndGetLong, compareUtf8, copyTo, copyTo, createCharToString, findByte, parseLong, peekVolatileInt, printable, readBoolean, readUnsignedByte, readUnsignedInt, readUnsignedInt24, readUnsignedShort, readUtf8, readUtf8Limited, readUtf8Limited, readVolatileDouble, readVolatileFloat, subBytes, toByteArrayappend, append, write, write, writeBoolean, writeByte, writeInt24, writeOrderedDouble, writeOrderedFloat, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort, writeUtf8, writeUtf8Limited, writeVolatileDouble, writeVolatileFloatrelease, releaseAll, tryReservechars, codePointsprotected MappedBytesStore(net.openhft.chronicle.core.ReferenceCounted owner,
long start,
long address,
long capacity,
long safeCapacity)
throws IllegalStateException
IllegalStateException@NotNull public VanillaBytes<Void> bytesForWrite() throws IllegalStateException
bytesForWrite in interface BytesStore<NativeBytesStore<Void>,Void>bytesForWrite in class NativeBytesStore<Void>IllegalStateExceptionpublic boolean inside(long offset)
BytesStorepublic long safeLimit()
safeLimit in interface BytesStore<NativeBytesStore<Void>,Void>safeLimit in class NativeBytesStore<Void>public byte readByte(long offset)
RandomDataInputreadByte in interface RandomDataInputreadByte in class NativeBytesStore<Void>offset - to read@NotNull public NativeBytesStore<Void> writeOrderedInt(long offset, int i)
RandomDataOutputwriteOrderedInt in interface RandomDataOutput<NativeBytesStore<Void>>writeOrderedInt in class NativeBytesStore<Void>offset - to write toi - value to writeprotected long translate(long offset)
translate in class NativeBytesStore<Void>public long start()
start in class AbstractBytesStore<NativeBytesStore<Void>,Void>public long writePosition()
public long writeRemaining()
public long readLimit()
public long writeLimit()
public ByteOrder byteOrder()
public boolean compareAndSwapFloat(long offset,
float expected,
float value)
throws BufferOverflowException,
IllegalArgumentException
offset - to perform CASexpected - valuevalue - to setBufferOverflowExceptionIllegalArgumentExceptionpublic boolean compareAndSwapDouble(long offset,
double expected,
double value)
throws BufferOverflowException,
IllegalArgumentException
offset - to perform CASexpected - valuevalue - to setBufferOverflowExceptionIllegalArgumentExceptionCopyright © 2017. All rights reserved.