public class io.netty.handler.codec.protobuf.ProtobufVarint32LengthFieldPrepender extends io.netty.handler.codec.MessageToByteEncoder<io.netty.buffer.ByteBuf>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.netty.handler.codec.protobuf.ProtobufVarint32LengthFieldPrepender
super_class: io.netty.handler.codec.MessageToByteEncoder
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial io.netty.handler.codec.MessageToByteEncoder.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/protobuf/ProtobufVarint32LengthFieldPrepender;
protected void encode(io.netty.channel.ChannelHandlerContext, io.netty.buffer.ByteBuf, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
istore 4
start local 4 1: iload 4
invokestatic io.netty.handler.codec.protobuf.ProtobufVarint32LengthFieldPrepender.computeRawVarint32Size:(I)I
istore 5
start local 5 2: aload 3
iload 5
iload 4
iadd
invokevirtual io.netty.buffer.ByteBuf.ensureWritable:(I)Lio/netty/buffer/ByteBuf;
pop
3: aload 3
iload 4
invokestatic io.netty.handler.codec.protobuf.ProtobufVarint32LengthFieldPrepender.writeRawVarint32:(Lio/netty/buffer/ByteBuf;I)V
4: aload 3
aload 2
aload 2
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
iload 4
invokevirtual io.netty.buffer.ByteBuf.writeBytes:(Lio/netty/buffer/ByteBuf;II)Lio/netty/buffer/ByteBuf;
pop
5: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/netty/handler/codec/protobuf/ProtobufVarint32LengthFieldPrepender;
0 6 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 6 2 msg Lio/netty/buffer/ByteBuf;
0 6 3 out Lio/netty/buffer/ByteBuf;
1 6 4 bodyLen I
2 6 5 headerLen I
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
ctx
msg
out
static void writeRawVarint32(io.netty.buffer.ByteBuf, int);
descriptor: (Lio/netty/buffer/ByteBuf;I)V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
iload 1
bipush -128
iand
ifne 3
1: aload 0
iload 1
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
2: return
3: StackMap locals:
StackMap stack:
aload 0
iload 1
bipush 127
iand
sipush 128
ior
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
4: iload 1
bipush 7
iushr
istore 1
5: goto 0
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 out Lio/netty/buffer/ByteBuf;
0 6 1 value I
MethodParameters:
Name Flags
out
value
static int computeRawVarint32Size(int);
descriptor: (I)I
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
bipush -128
iand
ifne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
iload 0
sipush -16384
iand
ifne 4
3: iconst_2
ireturn
4: StackMap locals:
StackMap stack:
iload 0
ldc -2097152
iand
ifne 6
5: iconst_3
ireturn
6: StackMap locals:
StackMap stack:
iload 0
ldc -268435456
iand
ifne 8
7: iconst_4
ireturn
8: StackMap locals:
StackMap stack:
iconst_5
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 value I
MethodParameters:
Name Flags
value final
protected void encode(io.netty.channel.ChannelHandlerContext, java.lang.Object, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Lio/netty/buffer/ByteBuf;)V
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
0: aload 0
aload 1
aload 2
checkcast io.netty.buffer.ByteBuf
aload 3
invokevirtual io.netty.handler.codec.protobuf.ProtobufVarint32LengthFieldPrepender.encode:(Lio/netty/channel/ChannelHandlerContext;Lio/netty/buffer/ByteBuf;Lio/netty/buffer/ByteBuf;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
Signature: Lio/netty/handler/codec/MessageToByteEncoder<Lio/netty/buffer/ByteBuf;>;
SourceFile: "ProtobufVarint32LengthFieldPrepender.java"
InnerClasses:
public abstract Sharable = io.netty.channel.ChannelHandler$Sharable of io.netty.channel.ChannelHandler
RuntimeVisibleAnnotations:
io.netty.channel.ChannelHandler$Sharable()