MutableBuffer

interface MutableBuffer<T> : Buffer<T>

A generic mutable random-access structure for both primitives and objects.

Parameters

T

the type of elements contained in the buffer.

Types

Companion
Link copied to clipboard
common
object Companion

Functions

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

Properties

size
Link copied to clipboard
common
abstract val size: Int
The size of this buffer.

Inheritors

MutableStructure1D
Link copied to clipboard
ArrayBuffer
Link copied to clipboard
DoubleBuffer
Link copied to clipboard
FloatBuffer
Link copied to clipboard
IntBuffer
Link copied to clipboard
MutableListBuffer
Link copied to clipboard
LongBuffer
Link copied to clipboard
MutableMemoryBuffer
Link copied to clipboard
ShortBuffer
Link copied to clipboard

Sources

common source
Link copied to clipboard