Here you can find the source of createFloatBuffer(int limit)
static public FloatBuffer createFloatBuffer(int limit)
//package com.java2s; //License from project: Open Source License import java.nio.*; public class Main { static public FloatBuffer createFloatBuffer(int limit) { FloatBuffer buf = ByteBuffer.allocateDirect(4 * limit).order(ByteOrder.nativeOrder()).asFloatBuffer(); buf.clear();//from w ww .j ava2 s .c om return buf; } }