Allocates a new IntBuffer with the given capacity (in ints). Internally, it creates a Buffer large enough to hold (capacity * 4) bytes.
Wraps an existing IntArray into an IntBuffer. The resulting buffer’s capacity and limit are set to array.size.