netty5/buffer/src
Trustin Lee cc4f705029 Replace ChannelBuffer.toByteBuffer() with hasNioBuffer() and nioBuffer()
... just like we do with byte arrays.  toByteBuffer() and
toByteBuffers() had an indeterministic behavior and thus it could not
tell when the returned NIO buffer is shared or not.  nioBuffer() always
returns a view buffer of the Netty buffer.  The only case where
hasNioBuffer() returns false and nioBuffer() fails is the
CompositeChannelBuffer, which is not very commonly used and *slow*.
2012-06-02 01:30:55 -07:00
..
main/java/io/netty/buffer Replace ChannelBuffer.toByteBuffer() with hasNioBuffer() and nioBuffer() 2012-06-02 01:30:55 -07:00
test/java/io/netty/buffer Replace ChannelBuffer.toByteBuffer() with hasNioBuffer() and nioBuffer() 2012-06-02 01:30:55 -07:00