You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuweni.apache.org by GitBox <gi...@apache.org> on 2020/07/12 21:22:08 UTC

[GitHub] [incubator-tuweni] atoulme commented on issue #88: Bytes.fromByteBuf() incorrectly interpret ByteBuf content

atoulme commented on issue #88:
URL: https://github.com/apache/incubator-tuweni/issues/88#issuecomment-657277039


   So I see that you go by readable bytes, and the implementation goes by capacity.
   
   What's a good fix here? A new utility method that copies bytes out to a different buffer (as it seems like you run into issues with keeping a reference to the original ByteBuf anyway) or a fix to the class to go by readableBytes() as size? 
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tuweni.apache.org
For additional commands, e-mail: dev-help@tuweni.apache.org