More explanation on ChannelBuffer.discardReadBytes()

This commit is contained in:
Trustin Lee 2009-08-28 05:56:47 +00:00
parent 1509f64db1
commit 7851e84a2c

View File

@ -148,6 +148,11 @@ import java.util.NoSuchElementException;
* readerIndex (0) <= writerIndex (decreased) <= capacity * readerIndex (0) <= writerIndex (decreased) <= capacity
* </pre> * </pre>
* *
* Please note that there is no guarantee about the content of writable bytes
* after calling {@link #discardReadBytes()}. The writable bytes will not be
* moved in most cases and could even be filled with completely different data
* depending on the underlying buffer implementation.
*
* <h4>Clearing the buffer indexes</h4> * <h4>Clearing the buffer indexes</h4>
* *
* You can set both {@link #readerIndex() readerIndex} and * You can set both {@link #readerIndex() readerIndex} and