Search code examples
javaniofloatbuffer

How to get the Floatbuffer stored float[]?


Having -

FloatBuffer floatBuffer  = FloatBuffer.allocate(SIZE)

how could I get its float[SIZE] ?


Solution

  • FloatBuffer.array() should return you the float array