Here you can find the source of readFloatArray(ByteBuffer bb, int length)
public static float[] readFloatArray(ByteBuffer bb, int length)
//package com.java2s; //License from project: Open Source License import java.nio.ByteBuffer; public class Main { public static float[] readFloatArray(ByteBuffer bb, int length) { float[] a = new float[length]; for (int i = 0; i < length; i++) { a[i] = bb.getFloat();/*from www .jav a 2s . c om*/ } return a; } }