List of utility methods to do FloatBuffer Create
FloatBuffer | toFloatBuffer(float[] array) to Float Buffer FloatBuffer buffer = ByteBuffer.allocateDirect(array.length << 2).order(ByteOrder.nativeOrder())
.asFloatBuffer();
buffer.put(array).flip();
return buffer;
|