public class PointerBytesStore extends NativeBytesStore<Void>
address, maximumLimit, memory, releasedHerecharToString| Constructor and Description |
|---|
PointerBytesStore() |
| Modifier and Type | Method and Description |
|---|---|
default long |
addressForRead(long offset,
int buffer) |
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 |
isPresent() |
void |
isPresent(boolean isPresent)
Clear and set the flag for present.
|
default long |
readLimit() |
long |
safeLimit() |
void |
set(long address,
long capacity) |
long |
start() |
default long |
writeLimit() |
default long |
writePosition()
The read position must be readPosition() <= writePosition() && writePosition() <= writeLimit()
|
default long |
writeRemaining() |
addAndGetInt, addAndGetLong, addressForRead, addressForWrite, 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, readByte, readDouble, readFloat, readIncompleteLong, readInt, readLong, readShort, readUnsignedByte, readVolatileByte, readVolatileInt, readVolatileLong, readVolatileShort, realCapacity, refCount, release, reserve, setAddress, sharedMemory, testAndSetInt, toString, toTemporaryDirectByteBuffer, translate, tryReserve, underlyingObject, uninit, uninitialized, wrap, write, write, write, write0, writeByte, writeDouble, writeFloat, writeInt, writeLong, writeOrderedInt, 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, inside, inside, isClear, isEmpty, length, longCheckSum, nativePointer, readWrite, startsWith, startsWith, subSequence, to8bitString, toDebugString, toDebugString, wrap, wrap, writeMaxLongaddAndGetDouble, addAndGetFloat, compareUtf8, copyTo, copyTo, createCharToString, findByte, parseLong, peekVolatileInt, printable, readBoolean, readUnsignedInt, readUnsignedInt24, readUnsignedShort, readUtf8, readUtf8Limited, readUtf8Limited, readVolatileDouble, readVolatileFloat, subBytes, toByteArrayappend, append, write, write, writeBoolean, writeByte, writeInt24, writeOrderedDouble, writeOrderedFloat, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort, writeUtf8, writeUtf8Limited, writeVolatileDouble, writeVolatileFloatchars, codePointspublic void set(long address,
long capacity)
@NotNull public VanillaBytes<Void> bytesForWrite() throws IllegalStateException
bytesForWrite in interface BytesStore<NativeBytesStore<Void>,Void>bytesForWrite in class NativeBytesStore<Void>IllegalStateExceptionpublic long safeLimit()
safeLimit in interface BytesStore<NativeBytesStore<Void>,Void>safeLimit in class NativeBytesStore<Void>public long start()
start in class AbstractBytesStore<NativeBytesStore<Void>,Void>public void isPresent(boolean isPresent)
BytesStoreisPresent - if there is data, or false if not.public boolean isPresent()
public long writePosition()
public long writeRemaining()
public long readLimit()
public long writeLimit()
public long addressForRead(long offset,
int buffer)
throws UnsupportedOperationException,
BufferUnderflowException
public ByteOrder byteOrder()
public boolean compareAndSwapFloat(long offset,
float expected,
float value)
throws BufferOverflowException
offset - to perform CASexpected - valuevalue - to setBufferOverflowExceptionpublic boolean compareAndSwapDouble(long offset,
double expected,
double value)
throws BufferOverflowException
offset - to perform CASexpected - valuevalue - to setBufferOverflowExceptionCopyright © 2018. All rights reserved.