read Slice
Wraps the newly created buf from {@code buf.readSlice}
in a packet byte buf.
Return
the newly created slice
See also
io.netty.buffer.ByteBuf
ByteBuf#readSlice(int)
Parameters
buf
the original buf
length
the size of the new slice
Sources
jvm source
Link copied to clipboard