I am using ByteToMessageDecoder
decode(ChannelHandlerContext ctx, ByteBuf bytebuf, List<Object> out) {
...
}
I want to perform some validation on incoming bytebuffer and then send bytebuf.nioBuffer()
to out
- do i have to make a copy of the
bytebuf.nioBuffer()
and add to output. if so what is the best way to do it - if I just add
bytebuf.nioBuffer()
to output will there be a chance of corruption - best way to extract ByteBuffer from netty ByteBuf, are there any utils available