/** * Clones the source {@link Buffer}. * The method returns a new {@link Buffer} instance, which has the same content. * Please note, source and result {@link Buffer}s have the same content, * but it is *not* shared, so the following content changes in one of the * {@link Buffer}s won't be visible in another one. * * @param srcBuffer the source {@link Buffer}. * @return the cloned {@link Buffer}. */ public static Buffer cloneBuffer(final Buffer srcBuffer) { return cloneBuffer(srcBuffer, srcBuffer.position(), srcBuffer.limit()); }
/** * Clones the source {@link Buffer}. * The method returns a new {@link Buffer} instance, which has the same content. * Please note, source and result {@link Buffer}s have the same content, * but it is *not* shared, so the following content changes in one of the * {@link Buffer}s won't be visible in another one. * * @param srcBuffer the source {@link Buffer}. * @return the cloned {@link Buffer}. */ public static Buffer cloneBuffer(final Buffer srcBuffer) { return cloneBuffer(srcBuffer, srcBuffer.position(), srcBuffer.limit()); }
/** * Clones the source {@link Buffer}. * The method returns a new {@link Buffer} instance, which has the same content. * Please note, source and result {@link Buffer}s have the same content, * but it is *not* shared, so the following content changes in one of the * {@link Buffer}s won't be visible in another one. * * @param srcBuffer the source {@link Buffer}. * @return the cloned {@link Buffer}. */ public static Buffer cloneBuffer(final Buffer srcBuffer) { return cloneBuffer(srcBuffer, srcBuffer.position(), srcBuffer.limit()); }
/** * Clones the source {@link Buffer}. * The method returns a new {@link Buffer} instance, which has the same content. * Please note, source and result {@link Buffer}s have the same content, * but it is *not* shared, so the following content changes in one of the * {@link Buffer}s won't be visible in another one. * * @param srcBuffer the source {@link Buffer}. * @return the cloned {@link Buffer}. */ public static Buffer cloneBuffer(final Buffer srcBuffer) { return cloneBuffer(srcBuffer, srcBuffer.position(), srcBuffer.limit()); }
/** * Clones the source {@link Buffer}. * The method returns a new {@link Buffer} instance, which has the same content. * Please note, source and result {@link Buffer}s have the same content, * but it is *not* shared, so the following content changes in one of the * {@link Buffer}s won't be visible in another one. * * @param srcBuffer the source {@link Buffer}. * @return the cloned {@link Buffer}. */ public static Buffer cloneBuffer(final Buffer srcBuffer) { return cloneBuffer(srcBuffer, srcBuffer.position(), srcBuffer.limit()); }
/** * Clones the source {@link Buffer}. * The method returns a new {@link Buffer} instance, which has the same content. * Please note, source and result {@link Buffer}s have the same content, * but it is *not* shared, so the following content changes in one of the * {@link Buffer}s won't be visible in another one. * * @param srcBuffer the source {@link Buffer}. * @return the cloned {@link Buffer}. */ public static Buffer cloneBuffer(final Buffer srcBuffer) { return cloneBuffer(srcBuffer, srcBuffer.position(), srcBuffer.limit()); }
/** * Clones the source {@link Buffer}. * The method returns a new {@link Buffer} instance, which has the same content. * Please note, source and result {@link Buffer}s have the same content, * but it is *not* shared, so the following content changes in one of the * {@link Buffer}s won't be visible in another one. * * @param srcBuffer the source {@link Buffer}. * @return the cloned {@link Buffer}. */ public static Buffer cloneBuffer(final Buffer srcBuffer) { return cloneBuffer(srcBuffer, srcBuffer.position(), srcBuffer.limit()); }
/** * Clones the source {@link Buffer}. * The method returns a new {@link Buffer} instance, which has the same content. * Please note, source and result {@link Buffer}s have the same content, * but it is *not* shared, so the following content changes in one of the * {@link Buffer}s won't be visible in another one. * * @param srcBuffer the source {@link Buffer}. * @return the cloned {@link Buffer}. */ public static Buffer cloneBuffer(final Buffer srcBuffer) { return cloneBuffer(srcBuffer, srcBuffer.position(), srcBuffer.limit()); }
/** * Clones the source {@link Buffer}. * The method returns a new {@link Buffer} instance, which has the same content. * Please note, source and result {@link Buffer}s have the same content, * but it is *not* shared, so the following content changes in one of the * {@link Buffer}s won't be visible in another one. * * @param srcBuffer the source {@link Buffer}. * @return the cloned {@link Buffer}. */ public static Buffer cloneBuffer(final Buffer srcBuffer) { return cloneBuffer(srcBuffer, srcBuffer.position(), srcBuffer.limit()); }
/** * Clones the source {@link Buffer}. * The method returns a new {@link Buffer} instance, which has the same content. * Please note, source and result {@link Buffer}s have the same content, * but it is *not* shared, so the following content changes in one of the * {@link Buffer}s won't be visible in another one. * * @param srcBuffer the source {@link Buffer}. * @return the cloned {@link Buffer}. */ public static Buffer cloneBuffer(final Buffer srcBuffer) { return cloneBuffer(srcBuffer, srcBuffer.position(), srcBuffer.limit()); }
/** * Clones the source {@link Buffer}. * The method returns a new {@link Buffer} instance, which has the same content. * Please note, source and result {@link Buffer}s have the same content, * but it is *not* shared, so the following content changes in one of the * {@link Buffer}s won't be visible in another one. * * @param srcBuffer the source {@link Buffer}. * @return the cloned {@link Buffer}. */ public static Buffer cloneBuffer(final Buffer srcBuffer) { return cloneBuffer(srcBuffer, srcBuffer.position(), srcBuffer.limit()); }
/** * Clones the source {@link Buffer}. * The method returns a new {@link Buffer} instance, which has the same content. * Please note, source and result {@link Buffer}s have the same content, * but it is *not* shared, so the following content changes in one of the * {@link Buffer}s won't be visible in another one. * * @param srcBuffer the source {@link Buffer}. * @return the cloned {@link Buffer}. */ public static Buffer cloneBuffer(final Buffer srcBuffer) { return cloneBuffer(srcBuffer, srcBuffer.position(), srcBuffer.limit()); }