You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we used protobuf in netty,it powerful but we need read bytes from ByteBuf before decode or encode to bytes and then write to ByteBuf ,this once copy between ByteBuf(netty) and protobuf make me puzzle.
i found method writeTo and readFrom in protoBuf,but i dont konw how to use it in netty to achieve zero copy,anyone can tell me ?
very thanks! ByteBuf::nioBuffer() cant work, one ByteBuf could has multiple ByteBuffer,i think we need nioBuffers() if we want to get ByteBuffer from ByteBuf
(i dont konw why the previous discussion was closed,so I opened a new one)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
we used protobuf in netty,it powerful but we need read bytes from ByteBuf before decode or encode to bytes and then write to ByteBuf ,this once copy between ByteBuf(netty) and protobuf make me puzzle.
i found method writeTo and readFrom in protoBuf,but i dont konw how to use it in netty to achieve zero copy,anyone can tell me ?
very thanks!
ByteBuf::nioBuffer()
cant work, one ByteBuf could has multiple ByteBuffer,i think we need nioBuffers() if we want to get ByteBuffer from ByteBuf(i dont konw why the previous discussion was closed,so I opened a new one)
Beta Was this translation helpful? Give feedback.
All reactions