Hi, I&#39;m a Netty noob and I have some basic questions. I&#39;m still exploring the API so be gentle :)<br><br>Is there a way to incrementally decode a message from a ChannelBuffer? Like this:<br><ol><li>Read some key integer fields</li>

<li>If not interested, discard message - do not decode the rest of the message. Just discard it. How do I cancel further downstream codecs?</li></ol><br>There are some other restrictions:<br><ul><li>I do not want to do a getBytes(xx) on the message and make a copy of the remaining message from the buffer to a byte[] . I know people would suggest this because it&#39;s the easiest workaround by doing the decode on my own from a byte[]. I want to avoid copying the bytes again and again from layer to layer</li>

<li>If I used slice() I suppose it would help avoid a copy?</li><li>Are these channelbuffers pooled? How long can I hang on to the MessageEvent, Channel or Channelbuffer instance? Would I be starving some other component/connection?</li>

<ul><li>FYI, I had asked a similar question on the Google Protobuf forum - <a href="http://groups.google.com/group/protobuf/browse_thread/thread/4563998c85d01882/1859fe2958485da2">http://groups.google.com/group/protobuf/browse_thread/thread/4563998c85d01882/1859fe2958485da2</a></li>

</ul><li>If I want to re-route my server request from 1 server to another server - read some bits and then decide to &quot;forward&quot; the message to another server, can I just do a zero-copy of the original bytes and send them to another server? You see - like a Hibernate disconnected session or a SQL Disconnected row set? <br>

</li><ul><li>The server now becomes a client to another server, so can I just use the same buffers and &quot;transfer&quot; them to the other handler that is talking to the final server? <br></li></ul></ul>Confused? :)<br>

<br>Super clean APIs though, I&#39;m impressed.<br><br>Regards,<br>Ashwin Jayaprakash.<br>