List of utility methods to do FloatBuffer Clone
FloatBuffer | clone(FloatBuffer original) clone final FloatBuffer clone = FloatBuffer.allocate(original.capacity()); final FloatBuffer readOriginal = original.asReadOnlyBuffer(); readOriginal.position(0); clone.put(readOriginal); clone.position(original.position()); return clone; |
FloatBuffer | clone(FloatBuffer src) clone src.rewind();
FloatBuffer copy = createFloatBuffer(src.limit());
copy.put(src);
return copy;
|