netty5/codec/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/handler/codec Add ByteBuf.asReadOnly() 2016-04-14 10:51:20 +02:00
test Correctly handle ChannelInputShutdownEvent in ReplayingDecoder 2016-04-14 10:20:58 +02:00