Java Utililty Methods FloatBuffer Clone

List of utility methods to do FloatBuffer Clone

Description

The list of methods to do FloatBuffer Clone are organized into topic(s).

Method

FloatBufferclone(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;
FloatBufferclone(FloatBuffer src)
clone
src.rewind();
FloatBuffer copy = createFloatBuffer(src.limit());
copy.put(src);
return copy;