public class BinaryLongArrayReference extends AbstractReference implements ByteableLongArrayValues, BytesMarshallable
| Modifier and Type | Field and Description |
|---|---|
static int |
SHIFT |
bytes, offset| Constructor and Description |
|---|
BinaryLongArrayReference() |
BinaryLongArrayReference(long defaultCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
bindValueAt(long index,
@NotNull net.openhft.chronicle.core.values.LongValue value) |
@Nullable BytesStore |
bytesStore() |
void |
bytesStore(@NotNull BytesStore bytes,
long offset,
long length)
This setter for a data type which points to an underlying ByteStore.
|
ByteableLongArrayValues |
capacity(long arrayLength) |
boolean |
compareAndSet(long index,
long expected,
long value) |
static void |
forceAllToNotCompleteState() |
long |
getCapacity() |
long |
getUsed() |
long |
getValueAt(long index) |
long |
getVolatileValueAt(long index) |
boolean |
isNull() |
static void |
lazyWrite(@NotNull Bytes bytes,
long capacity) |
long |
maxSize() |
long |
offset() |
static long |
peakLength(@NotNull BytesStore bytes,
long offset) |
void |
readMarshallable(BytesIn bytes)
Bytes to read.
|
void |
reset() |
void |
setMaxUsed(long usedAtLeast) |
void |
setOrderedValueAt(long index,
long value) |
void |
setValueAt(long index,
long value) |
long |
sizeInBytes(long capacity) |
static void |
startCollecting() |
@NotNull String |
toString() |
static void |
write(@NotNull Bytes bytes,
long capacity) |
void |
writeMarshallable(BytesOut bytes)
Write to Bytes.
|
acceptNewBytesStore, address, performClose, threadSafetyCheckassertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, enableCloseableTracing, isClosed, isClosing, isInUserThread, performCloseInBackground, referenceId, resetUsedByThread, shouldPerformCloseInBackground, shouldWaitForClosed, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, waitForClosed, warnAndCloseIfNotClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, closeQuietly, closeQuietly, notifyClosingisClosed, isClosing, throwExceptionIfClosed$toStringusesSelfDescribingMessagepublic static final int SHIFT
public BinaryLongArrayReference()
public BinaryLongArrayReference(long defaultCapacity)
public static void startCollecting()
public static void forceAllToNotCompleteState()
public static void write(@NotNull
@NotNull Bytes bytes,
long capacity)
throws BufferOverflowException,
IllegalArgumentException
public static void lazyWrite(@NotNull
@NotNull Bytes bytes,
long capacity)
throws BufferOverflowException
BufferOverflowExceptionpublic static long peakLength(@NotNull
@NotNull BytesStore bytes,
long offset)
throws BufferUnderflowException
BufferUnderflowExceptionpublic long getCapacity()
getCapacity in interface net.openhft.chronicle.core.values.LongArrayValuespublic long getUsed()
getUsed in interface net.openhft.chronicle.core.values.LongArrayValuespublic void setMaxUsed(long usedAtLeast)
setMaxUsed in interface net.openhft.chronicle.core.values.LongArrayValuespublic long getValueAt(long index)
throws BufferUnderflowException
getValueAt in interface net.openhft.chronicle.core.values.LongArrayValuesBufferUnderflowExceptionpublic void setValueAt(long index,
long value)
throws IllegalArgumentException,
BufferOverflowException
setValueAt in interface net.openhft.chronicle.core.values.LongArrayValuesIllegalArgumentExceptionBufferOverflowExceptionpublic long getVolatileValueAt(long index)
throws BufferUnderflowException
getVolatileValueAt in interface net.openhft.chronicle.core.values.LongArrayValuesBufferUnderflowExceptionpublic void bindValueAt(long index,
@NotNull
@NotNull net.openhft.chronicle.core.values.LongValue value)
bindValueAt in interface net.openhft.chronicle.core.values.LongArrayValuespublic void setOrderedValueAt(long index,
long value)
throws IllegalArgumentException,
BufferOverflowException
setOrderedValueAt in interface net.openhft.chronicle.core.values.LongArrayValuesIllegalArgumentExceptionBufferOverflowExceptionpublic void bytesStore(@NotNull
@NotNull BytesStore bytes,
long offset,
long length)
throws BufferUnderflowException,
IllegalArgumentException
ByteablebytesStore in interface ByteablebytesStore in class AbstractReferencebytes - the fix point ByteStoreoffset - the offset within the ByteStorelength - the length in the ByteStoreBufferUnderflowExceptionIllegalArgumentExceptionpublic void readMarshallable(BytesIn bytes) throws net.openhft.chronicle.core.io.IORuntimeException
ReadBytesMarshallablereadMarshallable in interface BytesMarshallablereadMarshallable in interface ReadBytesMarshallablebytes - to read.net.openhft.chronicle.core.io.IORuntimeExceptionpublic void writeMarshallable(BytesOut bytes)
WriteBytesMarshallablewriteMarshallable in interface BytesMarshallablewriteMarshallable in interface WriteBytesMarshallablebytes - to write to.public boolean isNull()
isNull in interface net.openhft.chronicle.core.values.LongArrayValuespublic void reset()
reset in interface net.openhft.chronicle.core.values.LongArrayValues@Nullable public @Nullable BytesStore bytesStore()
bytesStore in interface ByteablebytesStore in class AbstractReferencepublic long offset()
offset in interface Byteableoffset in class AbstractReferencepublic long maxSize()
maxSize in interface ByteablemaxSize in class AbstractReference@NotNull public @NotNull String toString()
toString in class net.openhft.chronicle.core.io.AbstractCloseablepublic long sizeInBytes(long capacity)
sizeInBytes in interface ByteableLongArrayValuessizeInBytes in interface net.openhft.chronicle.core.values.LongArrayValuespublic ByteableLongArrayValues capacity(long arrayLength)
capacity in interface ByteableLongArrayValuespublic boolean compareAndSet(long index,
long expected,
long value)
throws IllegalArgumentException,
BufferOverflowException
compareAndSet in interface net.openhft.chronicle.core.values.LongArrayValuesIllegalArgumentExceptionBufferOverflowExceptionCopyright © 2020. All rights reserved.