Nashatyrev opened a new issue #88:
URL: https://github.com/apache/incubator-tuweni/issues/88


   ### To reproduce
   ```java
       ByteBuf buf = Unpooled.buffer(100).writeByte(1);
       Bytes bytes = Bytes.wrapByteBuf(buf);
       System.out.println(bytes.size());
       System.out.println(bytes.toArray().length);
   ```
   ### Expected behavior
   ```
   1
   1
   ```
   The `buf` content is only 1 byte, other 99 reserved bytes are not the part 
of the buffer content 
   
   ### Observed behavior 
   ```
   100
   100
   ```


----------------------------------------------------------------
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:
us...@infra.apache.org



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

Reply via email to