IntBuffer

value class IntBuffer(array: IntArray) : MutableBuffer<Int>

Specialized MutableBuffer implementation over IntArray.

Constructors

IntBuffer
Link copied to clipboard
common
fun IntBuffer(array: IntArray)

Functions

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

Properties

array
Link copied to clipboard
common
val array: IntArray
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