Transfers this buffer's data to a newly created buffer starting at the current {@code position} and increases the {@code position}by the number of the transferred bytes (= {@code length}). The returned buffer's {@code position} and {@code writerIndex} are{@code 0} and {@code length} respectively.
@param length the number of bytes to transfer
@return the newly created buffer which contains the transferred bytes
@throws IndexOutOfBoundsException if {@code length} is greater than {@code this.available()}
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.