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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]