duplicate
Wraps the newly created buf from {@code buf.duplicate}
in a packet byte buf.
Return
a duplicate of the buf
See also
io.netty.buffer.ByteBuf
ByteBuf#duplicate()
Parameters
buf
the original buf
Sources
jvm source
Link copied to clipboard