public interface ByteableLongArrayValues extends net.openhft.chronicle.core.values.LongArrayValues, Byteable, DynamicallySized
Implementations of this interface should provide means to manage the array of long integers, with support for resizing the array dynamically. It is meant to be used where direct, low-level access to the bytes representing the long integer values is needed.
LongArrayValues,
Byteable,
DynamicallySized| Modifier and Type | Method and Description |
|---|---|
ByteableLongArrayValues |
capacity(long arrayLength)
Sets the capacity of the array, in terms of the number of long integers it can hold.
|
long |
sizeInBytes(long sizeInBytes)
Calculates the size in bytes needed to store the given number of long integers.
|
bindValueAt, compareAndSet, getCapacity, getUsed, getValueAt, getVolatileValueAt, isNull, reset, setMaxUsed, setOrderedValueAt, setUsed, setValueAtclose, closeQuietly, closeQuietlyaddress, bytesStore, bytesStore, lock, maxSize, offset, tryLocklong sizeInBytes(long sizeInBytes)
throws IllegalStateException
sizeInBytes in interface net.openhft.chronicle.core.values.LongArrayValuessizeInBytes - the number of long integers to be stored.net.openhft.chronicle.core.io.ClosedIllegalStateException - If the resource has been released or closed.net.openhft.chronicle.core.io.ThreadingIllegalStateException - If this resource was accessed by multiple threads in an unsafe wayIllegalStateExceptionByteableLongArrayValues capacity(long arrayLength) throws IllegalStateException
arrayLength - the desired array capacity, in number of long integers.ByteableLongArrayValues instance.net.openhft.chronicle.core.io.ClosedIllegalStateException - If the resource has been released or closed.net.openhft.chronicle.core.io.ThreadingIllegalStateException - If this resource was accessed by multiple threads in an unsafe wayIllegalStateExceptionCopyright © 2023. All rights reserved.