ReadableBuffer.slice

Creates a new ReadableBuffer instance that is a view of the readable portion of this buffer. The position will be set to zero and the limit and the reported capacity will match the value returned by this buffer's {@link #remaining()} method, the mark will be undefined.

@return a new ReadableBuffer that is a view of the readable portion of this buffer.

interface ReadableBuffer
slice
()

Meta