Companion

object Companion

Functions

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

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

Link copied to clipboard
fun wrap(array: IntArray): IntBuffer

Wraps an existing IntArray into an IntBuffer. The resulting buffer’s capacity and limit are set to array.size.