LongBuffer

value class LongBuffer(array: LongArray) : MutableBuffer<Long>

Specialized MutableBuffer implementation over LongArray.

Constructors

LongBuffer
Link copied to clipboard
common
fun LongBuffer(array: LongArray)

Functions

copy
Link copied to clipboard
common
open override fun copy(): MutableBuffer<Long>
Returns a shallow copy of the buffer.
get
Link copied to clipboard
common
open operator override fun get(index: Int): Long
Gets element at given index.
iterator
Link copied to clipboard
common
open operator override fun iterator(): LongIterator
Iterates over all elements.
set
Link copied to clipboard
common
open operator override fun set(index: Int, value: Long)
Sets the array element at the specified index to the specified value.

Properties

array
Link copied to clipboard
common
val array: LongArray
the underlying array.
size
Link copied to clipboard
common
open override val size: Int
The size of this buffer.

Sources

common source
Link copied to clipboard