Class ProtobufVarint32FrameDecoder
- java.lang.Object
-
- io.netty5.channel.ChannelHandlerAdapter
-
- io.netty5.handler.codec.ByteToMessageDecoder
-
- io.netty.contrib.handler.codec.protobuf.ProtobufVarint32FrameDecoder
-
- All Implemented Interfaces:
io.netty5.channel.ChannelHandler
public class ProtobufVarint32FrameDecoder extends io.netty5.handler.codec.ByteToMessageDecoderA decoder that splits the receivedBuffers dynamically by the value of the Google Protocol Buffers Base 128 Varints integer length field in the message. For example:BEFORE DECODE (302 bytes) AFTER DECODE (300 bytes) +--------+---------------+ +---------------+ | Length | Protobuf Data |----->| Protobuf Data | | 0xAC02 | (300 bytes) | | (300 bytes) | +--------+---------------+ +---------------+- See Also:
CodedInputStream,CodedInputByteBufferNano
-
-
Constructor Summary
Constructors Constructor Description ProtobufVarint32FrameDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddecode(io.netty5.channel.ChannelHandlerContext ctx, io.netty5.buffer.Buffer in)-
Methods inherited from class io.netty5.handler.codec.ByteToMessageDecoder
actualReadableBytes, channelInactive, channelRead, channelReadComplete, channelShutdown, decodeLast, discardSomeReadBytes, handlerAdded, handlerAdded0, handlerRemoved, handlerRemoved0, internalBuffer, isSharable, isSingleDecode, setSingleDecode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty5.channel.ChannelHandler
bind, channelActive, channelExceptionCaught, channelInboundEvent, channelRegistered, channelUnregistered, channelWritabilityChanged, close, connect, deregister, disconnect, flush, pendingOutboundBytes, read, register, sendOutboundEvent, shutdown, write
-
-