IntBuffer

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

Specialized MutableBuffer implementation over IntArray.

Constructors

Link copied to clipboard
fun IntBuffer(array: IntArray)

Functions

Link copied to clipboard
open override fun copy(): MutableBuffer<Int>

Returns a shallow copy of the buffer.

Link copied to clipboard
open operator override fun get(index: Int): Int

Gets element at given index.

Link copied to clipboard
open operator override fun iterator(): IntIterator

Iterates over all elements.

Link copied to clipboard
open operator override fun set(index: Int, value: Int)

Sets the array element at the specified index to the specified value.

Properties

Link copied to clipboard
val array: IntArray

the underlying array.

Link copied to clipboard
open override val size: Int

The size of this buffer.

Sources

Link copied to clipboard