List of utility methods to do ByteBuffer from FloatBuffer
ByteBuffer byteBuffer = ByteBuffer.allocate(buffer.capacity() * 4); byteBuffer.asFloatBuffer().put(buffer); return byteBuffer;