public class ProtobufVarint32FrameDecoder extends ByteToMessageDecoder<Object>
ByteBuf
s 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, replace
afterAdd, afterRemove, beforeRemove, channelActive, channelRegistered, channelUnregistered, exceptionCaught, userEventTriggered
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2008-2012 The Netty Project. All Rights Reserved.