DoubleBuffer

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

Specialized MutableBuffer implementation over DoubleArray.

Constructors

DoubleBuffer
Link copied to clipboard
common
fun DoubleBuffer(array: DoubleArray)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

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

Properties

array
Link copied to clipboard
common
val array: DoubleArray
the underlying array.
size
Link copied to clipboard
common
open override val size: Int
The size of this buffer.

Extensions

contentEquals
Link copied to clipboard
common
fun DoubleBuffer.contentEquals(vararg doubles: Double): Boolean
Simplified DoubleBuffer to array comparison

Sources

common source
Link copied to clipboard