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 io.netty.buffer.ByteBufcumulate(io.netty.buffer.ByteBufAllocator alloc, io.netty.buffer.ByteBuf cumulation, io.netty.buffer.ByteBuf in)Cumulate the givenByteBufs and return theByteBufthat holds the cumulated bytes.
-
-
-
Method Detail
-
cumulate
io.netty.buffer.ByteBuf cumulate(io.netty.buffer.ByteBufAllocator alloc, io.netty.buffer.ByteBuf cumulation, io.netty.buffer.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.
-
-