public static interface ByteToMessageDecoder.Cumulator
ByteBuf
s.Modifier and Type | Method and Description |
---|---|
io.netty.buffer.ByteBuf |
cumulate(io.netty.buffer.ByteBufAllocator alloc,
io.netty.buffer.ByteBuf cumulation,
io.netty.buffer.ByteBuf in)
Cumulate the given
ByteBuf s and return the ByteBuf that holds the cumulated bytes. |
io.netty.buffer.ByteBuf cumulate(io.netty.buffer.ByteBufAllocator alloc, io.netty.buffer.ByteBuf cumulation, io.netty.buffer.ByteBuf in)
ByteBuf
s and return the ByteBuf
that holds the cumulated bytes.
The implementation is responsible to correctly handle the life-cycle of the given ByteBuf
s and so
call ReferenceCounted.release()
if a ByteBuf
is fully consumed.Copyright © 2008–2019 The Netty Project. All rights reserved.