Unpooled.copiedBuffer

Creates a new buffer whose content is a copy of the specified {@code buffer}'s current slice. The new buffer's {@code readerIndex} and {@code writerIndex} are {@code 0} and {@code buffer.remaining} respectively.

Meta