Here you can find the source of createIntBuffer(int capacity)
public static IntBuffer createIntBuffer(int capacity)
//package com.java2s; import java.nio.*; public class Main { public static IntBuffer createIntBuffer(int capacity) { return createByteBuffer(capacity * Integer.BYTES).asIntBuffer(); }/* www . j av a 2 s . c om*/ public static ByteBuffer createByteBuffer(int capacity) { return ByteBuffer.allocateDirect(capacity * Byte.BYTES).order(ByteOrder.nativeOrder()); } }