ByteToMessageHandler

public final class ByteToMessageHandler<Decoder> where Decoder : ByteToMessageDecoder

A handler which turns a given ByteToMessageDecoder into a ChannelInboundHandler that can then be added to a ChannelPipeline.

Most importantly, ByteToMessageHandler handles the tricky buffer management for you and flattens out all re-entrancy on channelRead that may happen in the ChannelPipeline.