Having -
FloatBuffer floatBuffer = FloatBuffer.allocate(SIZE)
how could I get its float[SIZE] ?
Having -
FloatBuffer floatBuffer = FloatBuffer.allocate(SIZE)
how could I get its float[SIZE] ?
On
You can use the FloatBuffer#get(float[] dst) method to copy the underlying array to a new destination array.
On
To get the float[] array backed by the buffer just call the method array() :
float[] arrayBuff = floatBuffer.array();
FloatBuffer.array() should return you the float array