Skip to content

Commit

Permalink
More explanation on ChannelBuffer.discardReadBytes()
Browse files Browse the repository at this point in the history
  • Loading branch information
trustin committed Aug 28, 2009
1 parent 1509f64 commit 7851e84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/org/jboss/netty/buffer/ChannelBuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@
* readerIndex (0) <= writerIndex (decreased) <= capacity
* </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>
*
* You can set both {@link #readerIndex() readerIndex} and
Expand Down

0 comments on commit 7851e84

Please sign in to comment.