DoubleBuffer

value class DoubleBuffer(array: DoubleArray) : MutableBuffer<Double>

Specialized MutableBuffer implementation over DoubleArray.

Constructors

Link copied to clipboard
fun DoubleBuffer(array: DoubleArray)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun copy(): DoubleBuffer

Returns a shallow copy of the buffer.

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

Gets element at given index.

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

Iterates over all elements.

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

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

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val array: DoubleArray

the underlying array.

Link copied to clipboard
open override val size: Int

The size of this buffer.

Extensions

Link copied to clipboard
fun DoubleBuffer.contentEquals(vararg doubles: Double): Boolean

Simplified DoubleBuffer to array comparison

Sources

Link copied to clipboard