Datasource:
float[] v = { ... };
Working example:
FloatBuffer buf = BufferUtils.createFloatBuffer(v.length); buf.put(v); buf.fl
BufferUtils returns a direct buffer whereas the others might not.
You can check the directness of the wrap and allocate methods using isDirect() method. Wrappers are non direct.