Documentation suggestion / question

Bruce Mitchener bruce.mitchener at gmail.com
Wed Aug 24 01:33:01 EDT 2011


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...

 - Bruce

On Wed, Aug 24, 2011 at 12:19 PM, Norman Maurer <norman at apache.org> wrote:

> Hi there,
>
> as far as I can tell it will by default be array backend when you
> receive a ChannelBuffer in the pipeline. To be save I would call
> ChannelBuffer.hasArray() to check before assuming its array backed.
>
> Bye,
> Norman
>
>
> Am 24.08.2011 06:07, schrieb Bruce Mitchener:
> > On
> >
> http://docs.jboss.org/netty/3.2/api/org/jboss/netty/buffer/ChannelBuffer.html
> ,
> > it talks about whether or not a ChannelBuffer may or may not have a
> > backing array. It would be helpful to have an understanding of when
> > there is a backing array and when not.
> >
> > For example, when processing a message coming in from the network
> > through the pipeline, is there always a backing array?
> >
> > Thanks,
> >
> >  - Bruce
> >
> >
>
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20110824/5f47dc79/attachment.html 


More information about the netty-users mailing list