Array

sealed abstract class Array[T] extends Serializable with Cloneable
Companion:
object
trait Cloneable
class Object
trait Matchable
class Any

Value members

Abstract methods

def apply(i: Int): T

Loads element at i, throws ArrayIndexOutOfBoundsException.

Loads element at i, throws ArrayIndexOutOfBoundsException.

def atRaw(i: Int): RawPtr

Raw pointer to the element.

Raw pointer to the element.

Size between elements in the array.

Size between elements in the array.

def update(i: Int, value: T): Unit

Stores value to element i, throws ArrayIndexOutOfBoundsException.

Stores value to element i, throws ArrayIndexOutOfBoundsException.

Concrete methods

def at(i: Int): Ptr[T]

Pointer to the element.

Pointer to the element.

override def clone(): Array[T]

Create a shallow copy of given array.

Create a shallow copy of given array.

Definition Classes
def length: Int

Number of elements of the array.

Number of elements of the array.