Companion

object Companion

Functions

Link copied to clipboard
fun allocate(capacity: Int): FloatBuffer

Allocates a new FloatBuffer with the given capacity (in floats). Internally, it creates a Buffer large enough to hold (capacity * 4) bytes.

Link copied to clipboard
fun wrap(array: FloatArray, order: ByteOrder = ByteOrder.BIG_ENDIAN): FloatBuffer

Wraps an existing FloatArray into a FloatBuffer. The resulting buffer’s capacity and limit are set to array.size.