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