FloatBuffer

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

Specialized MutableBuffer implementation over FloatArray.

Author

Iaroslav Postovalov

Constructors

FloatBuffer
Link copied to clipboard
common
fun FloatBuffer(array: FloatArray)

Functions

contentEquals
Link copied to clipboard
common
open fun contentEquals(other: Buffer<*>): Boolean
Checks content equality with another buffer.
copy
Link copied to clipboard
common
open override fun copy(): MutableBuffer<Float>
Returns a shallow copy of the buffer.
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
get
Link copied to clipboard
common
open operator override fun get(index: Int): Float
Gets element at given index.
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
iterator
Link copied to clipboard
common
open operator override fun iterator(): FloatIterator
Iterates over all elements.
set
Link copied to clipboard
common
open operator override fun set(index: Int, value: Float)
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: FloatArray
the underlying array.
size
Link copied to clipboard
common
open override val size: Int
The size of this buffer.