Hi<div><br></div><div>Is it normal that ChannelBuffer.write*() changes the readable bytes?</div><div><br></div><div>For example:<br><div><br></div><div><div>ChannelBuffer buffer = dynamicBuffer(512);</div><div>// write some bytes here</div>
<div>...</div><div><div>System.out.println(&quot;readableBytes: &quot; + buffer.readableBytes());</div><div>buffer.writerIndex(2);</div><div>System.out.println(&quot;readableBytes: &quot; + buffer.readableBytes());</div><div>
<br></div><div>and the program printed:</div><div><br></div><div><div>readableBytes: 27</div><div>readableBytes: 2</div></div><div><br></div><div><br></div><div>The readable bytes became 2 after the writerIndex() is called (it was 27).</div>
<div><br></div><br>-- <br><br>Hez<br>
</div></div></div>