public interface ByteableIntArrayValues extends net.openhft.chronicle.core.values.IntArrayValues, Byteable, DynamicallySized
Implementations of this interface should provide means to manage the array of integers, with support for resizing the array dynamically. It is meant to be used where direct, low-level access to the bytes representing the integer values is needed.
IntArrayValues
,
Byteable
,
DynamicallySized
Modifier and Type | Method and Description |
---|---|
ByteableIntArrayValues |
capacity(long arrayLength)
Sets the capacity of the array, in terms of the number of integers it can hold.
|
long |
sizeInBytes(long sizeInBytes)
Calculates the size in bytes needed to store the given number of integers.
|
bindValueAt, compareAndSet, getCapacity, getUsed, getValueAt, getVolatileValueAt, isNull, reset, setMaxUsed, setOrderedValueAt, setValueAt
close, closeQuietly, closeQuietly
address, bytesStore, bytesStore, lock, maxSize, offset, tryLock
long sizeInBytes(long sizeInBytes) throws IllegalStateException
sizeInBytes
in interface net.openhft.chronicle.core.values.IntArrayValues
sizeInBytes
- the number of 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 wayIllegalStateException
ByteableIntArrayValues capacity(long arrayLength) throws IllegalStateException
arrayLength
- the desired array capacity, in number of integers.ByteableIntArrayValues
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 wayIllegalStateException
Copyright © 2024. All rights reserved.