retainedDuplicate

static PacketByteBuf retainedDuplicate(ByteBuf buf)

Wraps the newly created buf from {@code buf.retainedDuplicate} in a packet byte buf.

Return

a duplicate of the buf

See also

io.netty.buffer.ByteBuf

ByteBuf#retainedDuplicate()

Parameters

buf

the original buf

Sources

jvm source
Link copied to clipboard