allocate

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.