netty5/buffer/src/test/java/io
Norman Maurer 819b870b8a Correctly take position into account when wrap a ByteBuffer via ReadOnlyUnsafeDirectByteBuf
Motivation:

We did not correctly take the position into account when wrapping a ByteBuffer via ReadOnlyUnsafeDirectByteBuf as we obtained the memory address from the original ByteBuffer and not the slice we take.

Modifications:

- Correctly use the slice to obtain memory address.
- Add test case.

Result:

Fixes [#7565].
2018-01-16 19:18:59 +01:00
..
netty/buffer Correctly take position into account when wrap a ByteBuffer via ReadOnlyUnsafeDirectByteBuf 2018-01-16 19:18:59 +01:00