FloatBuffer

value class FloatBuffer(array: FloatArray) : MutableBuffer<Float>

Specialized MutableBuffer implementation over FloatArray.

Author

Iaroslav Postovalov

Constructors

Link copied to clipboard
fun FloatBuffer(array: FloatArray)

Functions

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

Returns a shallow copy of the buffer.

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

Gets element at given index.

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

Iterates over all elements.

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

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

Properties

Link copied to clipboard
val array: FloatArray

the underlying array.

Link copied to clipboard
open override val size: Int

The size of this buffer.

Sources

Link copied to clipboard