public class BinaryIntArrayReference extends AbstractReference implements ByteableIntArrayValues, BytesMarshallable
Modifier and Type | Field and Description |
---|---|
static int |
SHIFT |
bytes, offset
Constructor and Description |
---|
BinaryIntArrayReference() |
BinaryIntArrayReference(long defaultCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
bindValueAt(long index,
@NotNull net.openhft.chronicle.core.values.IntValue 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.
|
ByteableIntArrayValues |
capacity(long arrayLength) |
boolean |
compareAndSet(long index,
int expected,
int value) |
static void |
forceAllToNotCompleteState() |
long |
getCapacity() |
long |
getUsed() |
int |
getValueAt(long index) |
int |
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,
int value) |
void |
setValueAt(long index,
int 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, threadSafetyCheck
assertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, enableCloseableTracing, isClosed, isClosing, isInUserThread, performCloseInBackground, referenceId, resetUsedByThread, shouldPerformCloseInBackground, shouldWaitForClosed, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, waitForClosed, warnAndCloseIfNotClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, closeQuietly, closeQuietly, notifyClosing
isClosed, isClosing, throwExceptionIfClosed
$toString
usesSelfDescribingMessage
public static final int SHIFT
public BinaryIntArrayReference()
public BinaryIntArrayReference(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
BufferOverflowException
public static long peakLength(@NotNull @NotNull BytesStore bytes, long offset) throws BufferUnderflowException
BufferUnderflowException
public long getCapacity()
getCapacity
in interface net.openhft.chronicle.core.values.IntArrayValues
public long getUsed()
getUsed
in interface net.openhft.chronicle.core.values.IntArrayValues
public void setMaxUsed(long usedAtLeast)
setMaxUsed
in interface net.openhft.chronicle.core.values.IntArrayValues
public int getValueAt(long index) throws BufferUnderflowException
getValueAt
in interface net.openhft.chronicle.core.values.IntArrayValues
BufferUnderflowException
public void setValueAt(long index, int value) throws IllegalArgumentException, BufferOverflowException
setValueAt
in interface net.openhft.chronicle.core.values.IntArrayValues
IllegalArgumentException
BufferOverflowException
public int getVolatileValueAt(long index) throws BufferUnderflowException
getVolatileValueAt
in interface net.openhft.chronicle.core.values.IntArrayValues
BufferUnderflowException
public void bindValueAt(long index, @NotNull @NotNull net.openhft.chronicle.core.values.IntValue value)
bindValueAt
in interface net.openhft.chronicle.core.values.IntArrayValues
public void setOrderedValueAt(long index, int value) throws IllegalArgumentException, BufferOverflowException
setOrderedValueAt
in interface net.openhft.chronicle.core.values.IntArrayValues
IllegalArgumentException
BufferOverflowException
public void bytesStore(@NotNull @NotNull BytesStore bytes, long offset, long length) throws BufferUnderflowException, IllegalArgumentException
Byteable
bytesStore
in interface Byteable
bytesStore
in class AbstractReference
bytes
- the fix point ByteStoreoffset
- the offset within the ByteStorelength
- the length in the ByteStoreBufferUnderflowException
IllegalArgumentException
public void readMarshallable(BytesIn bytes) throws net.openhft.chronicle.core.io.IORuntimeException
ReadBytesMarshallable
readMarshallable
in interface BytesMarshallable
readMarshallable
in interface ReadBytesMarshallable
bytes
- to read.net.openhft.chronicle.core.io.IORuntimeException
public void writeMarshallable(BytesOut bytes)
WriteBytesMarshallable
writeMarshallable
in interface BytesMarshallable
writeMarshallable
in interface WriteBytesMarshallable
bytes
- to write to.public boolean isNull()
isNull
in interface net.openhft.chronicle.core.values.IntArrayValues
public void reset()
reset
in interface net.openhft.chronicle.core.values.IntArrayValues
@Nullable public @Nullable BytesStore bytesStore()
bytesStore
in interface Byteable
bytesStore
in class AbstractReference
public long offset()
offset
in interface Byteable
offset
in class AbstractReference
public long maxSize()
maxSize
in interface Byteable
maxSize
in class AbstractReference
@NotNull public @NotNull String toString()
toString
in class net.openhft.chronicle.core.io.AbstractCloseable
public long sizeInBytes(long capacity)
sizeInBytes
in interface ByteableIntArrayValues
sizeInBytes
in interface net.openhft.chronicle.core.values.IntArrayValues
public ByteableIntArrayValues capacity(long arrayLength)
capacity
in interface ByteableIntArrayValues
public boolean compareAndSet(long index, int expected, int value) throws IllegalArgumentException, BufferOverflowException
compareAndSet
in interface net.openhft.chronicle.core.values.IntArrayValues
IllegalArgumentException
BufferOverflowException
Copyright © 2020. All rights reserved.