I agree, but I'm curious when it wouldn't be and think maybe the docs could be updated to discuss that. :) As it is, I have to implement a fallback now that may or may not ever be needed...<div><br></div><div> - Bruce<br>
<br><div class="gmail_quote">On Wed, Aug 24, 2011 at 12:19 PM, Norman Maurer <span dir="ltr"><<a href="mailto:norman@apache.org">norman@apache.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi there,<br>
<br>
as far as I can tell it will by default be array backend when you<br>
receive a ChannelBuffer in the pipeline. To be save I would call<br>
ChannelBuffer.hasArray() to check before assuming its array backed.<br>
<br>
Bye,<br>
Norman<br>
<br>
<br>
Am 24.08.2011 06:07, schrieb Bruce Mitchener:<br>
<div><div></div><div class="h5">> On<br>
> <a href="http://docs.jboss.org/netty/3.2/api/org/jboss/netty/buffer/ChannelBuffer.html" target="_blank">http://docs.jboss.org/netty/3.2/api/org/jboss/netty/buffer/ChannelBuffer.html</a>,<br>
> it talks about whether or not a ChannelBuffer may or may not have a<br>
> backing array. It would be helpful to have an understanding of when<br>
> there is a backing array and when not.<br>
><br>
> For example, when processing a message coming in from the network<br>
> through the pipeline, is there always a backing array?<br>
><br>
> Thanks,<br>
><br>
> - Bruce<br>
><br>
><br>
<br>
<br>
</div></div>_______________________________________________<br>
netty-users mailing list<br>
<a href="mailto:netty-users@lists.jboss.org">netty-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/netty-users" target="_blank">https://lists.jboss.org/mailman/listinfo/netty-users</a><br>
</blockquote></div><br></div>