Appending an incoming ChannelBuffer?

ljohnston johnstlr at yahoo.co.uk
Sun Jan 16 06:38:39 EST 2011


Could you use ChannelBuffers.wrappedBuffer(ChannelBuffers ... buffers). This
returns a CompositeChannelBuffer which internally stores an array list of
all the buffers which form the total buffer. The actual buffers are not
copied.

CompositeChannelBuffer has various getBytes methods, including one which
takes an OutputStream for writing the buffer contents directly to a stream.

Cheers
Lee
-- 
View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Appending-an-incoming-ChannelBuffer-tp5925199p5928993.html
Sent from the Netty User Group mailing list archive at Nabble.com.


More information about the netty-users mailing list