* @param dst the destination Buffer, its position is used as an offset. */
public static void copy (float[] src, int srcOffset, int numElements, Buffer dst) {
FloatBuffer buffer = asFloatBuffer(dst);
int oldPosition = buffer.position();
buffer.put(src, srcOffset, numElements);
buffer.position(oldPosition);
}
/** Copies the contents of src to dst, starting from src[srcOffset], copying numElements elements. The {@link Buffer} instance's
* {@link Buffer#position()} is used to define the offset into the Buffer itself. The position and limit will stay the same.
* <b>The Buffer must be a direct Buffer with native byte order. No error checking is performed</b>.