netty5/buffer/src
Norman Maurer d698746609 Add ByteBuf.asReadOnly()
Motivation:

We lately added ByteBuf.isReadOnly() which allows to detect if a buffer is read-only or not. We should add ByteBuf.asReadOnly() to allow easily access a read-only version of a buffer.

Modifications:

- Add ByteBuf.asReadOnly()
- Deprecate Unpooled.unmodifiableBuffer(Bytebuf)

Result:

More consistent api.
2016-04-14 10:51:20 +02:00
..
main/java/io/netty/buffer Add ByteBuf.asReadOnly() 2016-04-14 10:51:20 +02:00
test/java/io/netty/buffer Fix IndexOutOfBoundsException when FixedCompositeByteBuf is constructed with an empty array. 2016-04-14 08:07:55 +02:00