Package io.netty.handler.codec
Interface ByteToMessageDecoder.Cumulator
-
- Enclosing class:
- ByteToMessageDecoder
public static interface ByteToMessageDecoder.Cumulator
CumulateByteBuf
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ByteBuf
cumulate(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf in)
-
-
-
Method Detail
-
cumulate
ByteBuf cumulate(ByteBufAllocator alloc, ByteBuf cumulation, ByteBuf in)
Cumulate the givenByteBuf
s and return theByteBuf
that holds the cumulated bytes. The implementation is responsible to correctly handle the life-cycle of the givenByteBuf
s and so callReferenceCounted.release()
if aByteBuf
is fully consumed.
-
-