public class ProtobufVarint32FrameDecoder extends ByteToMessageDecoder<Object>
ByteBufs 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) | +--------+---------------+ +---------------+
CodedInputStream| Constructor and Description |
|---|
ProtobufVarint32FrameDecoder()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
decode(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf in) |
beforeAdd, callDecode, channelInactive, decodeLast, inboundBufferUpdated, newInboundBuffer, replaceafterAdd, afterRemove, beforeRemove, channelActive, channelRegistered, channelUnregistered, exceptionCaught, userEventTriggeredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitCopyright © 2008-2012 The Netty Project. All Rights Reserved.