public final class io.netty.handler.codec.mqtt.MqttEncoder extends io.netty.handler.codec.MessageToMessageEncoder<io.netty.handler.codec.mqtt.MqttMessage>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.netty.handler.codec.mqtt.MqttEncoder
super_class: io.netty.handler.codec.MessageToMessageEncoder
{
public static final io.netty.handler.codec.mqtt.MqttEncoder INSTANCE;
descriptor: Lio/netty/handler/codec/mqtt/MqttEncoder;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static volatile int[] $SWITCH_TABLE$io$netty$handler$codec$mqtt$MqttMessageType;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new io.netty.handler.codec.mqtt.MqttEncoder
dup
invokespecial io.netty.handler.codec.mqtt.MqttEncoder.<init>:()V
putstatic io.netty.handler.codec.mqtt.MqttEncoder.INSTANCE:Lio/netty/handler/codec/mqtt/MqttEncoder;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial io.netty.handler.codec.MessageToMessageEncoder.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/mqtt/MqttEncoder;
protected void encode(io.netty.channel.ChannelHandlerContext, io.netty.handler.codec.mqtt.MqttMessage, java.util.List<java.lang.Object>);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/mqtt/MqttMessage;Ljava/util/List;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
aload 1
invokeinterface io.netty.channel.ChannelHandlerContext.alloc:()Lio/netty/buffer/ByteBufAllocator;
aload 2
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.doEncode:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttMessage;)Lio/netty/buffer/ByteBuf;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/handler/codec/mqtt/MqttEncoder;
0 2 1 ctx Lio/netty/channel/ChannelHandlerContext;
0 2 2 msg Lio/netty/handler/codec/mqtt/MqttMessage;
0 2 3 out Ljava/util/List<Ljava/lang/Object;>;
Exceptions:
throws java.lang.Exception
Signature: (Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/mqtt/MqttMessage;Ljava/util/List<Ljava/lang/Object;>;)V
MethodParameters:
Name Flags
ctx
msg
out
static io.netty.buffer.ByteBuf doEncode(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.mqtt.MqttMessage);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttMessage;)Lio/netty/buffer/ByteBuf;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: invokestatic io.netty.handler.codec.mqtt.MqttEncoder.$SWITCH_TABLE$io$netty$handler$codec$mqtt$MqttMessageType:()[I
aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttMessage.fixedHeader:()Lio/netty/handler/codec/mqtt/MqttFixedHeader;
invokevirtual io.netty.handler.codec.mqtt.MqttFixedHeader.messageType:()Lio/netty/handler/codec/mqtt/MqttMessageType;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageType.ordinal:()I
iaload
tableswitch { // 1 - 14
1: 1
2: 2
3: 3
4: 7
5: 7
6: 7
7: 7
8: 4
9: 6
10: 5
11: 7
12: 8
13: 8
14: 8
default: 9
}
1: StackMap locals:
StackMap stack:
aload 0
aload 1
checkcast io.netty.handler.codec.mqtt.MqttConnectMessage
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.encodeConnectMessage:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttConnectMessage;)Lio/netty/buffer/ByteBuf;
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
checkcast io.netty.handler.codec.mqtt.MqttConnAckMessage
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.encodeConnAckMessage:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttConnAckMessage;)Lio/netty/buffer/ByteBuf;
areturn
3: StackMap locals:
StackMap stack:
aload 0
aload 1
checkcast io.netty.handler.codec.mqtt.MqttPublishMessage
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.encodePublishMessage:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttPublishMessage;)Lio/netty/buffer/ByteBuf;
areturn
4: StackMap locals:
StackMap stack:
aload 0
aload 1
checkcast io.netty.handler.codec.mqtt.MqttSubscribeMessage
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.encodeSubscribeMessage:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttSubscribeMessage;)Lio/netty/buffer/ByteBuf;
areturn
5: StackMap locals:
StackMap stack:
aload 0
aload 1
checkcast io.netty.handler.codec.mqtt.MqttUnsubscribeMessage
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.encodeUnsubscribeMessage:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttUnsubscribeMessage;)Lio/netty/buffer/ByteBuf;
areturn
6: StackMap locals:
StackMap stack:
aload 0
aload 1
checkcast io.netty.handler.codec.mqtt.MqttSubAckMessage
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.encodeSubAckMessage:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttSubAckMessage;)Lio/netty/buffer/ByteBuf;
areturn
7: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.encodeMessageWithOnlySingleByteFixedHeaderAndMessageId:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttMessage;)Lio/netty/buffer/ByteBuf;
areturn
8: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.encodeMessageWithOnlySingleByteFixedHeader:(Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttMessage;)Lio/netty/buffer/ByteBuf;
areturn
9: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
10: new java.lang.StringBuilder
dup
ldc "Unknown message type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttMessage.fixedHeader:()Lio/netty/handler/codec/mqtt/MqttFixedHeader;
invokevirtual io.netty.handler.codec.mqtt.MqttFixedHeader.messageType:()Lio/netty/handler/codec/mqtt/MqttMessageType;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageType.value:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 byteBufAllocator Lio/netty/buffer/ByteBufAllocator;
0 12 1 message Lio/netty/handler/codec/mqtt/MqttMessage;
MethodParameters:
Name Flags
byteBufAllocator
message
private static io.netty.buffer.ByteBuf encodeConnectMessage(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.mqtt.MqttConnectMessage);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttConnectMessage;)Lio/netty/buffer/ByteBuf;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=22, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttConnectMessage.fixedHeader:()Lio/netty/handler/codec/mqtt/MqttFixedHeader;
astore 3
start local 3 2: aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttConnectMessage.variableHeader:()Lio/netty/handler/codec/mqtt/MqttConnectVariableHeader;
astore 4
start local 4 3: aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttConnectMessage.payload:()Lio/netty/handler/codec/mqtt/MqttConnectPayload;
astore 5
start local 5 4: aload 4
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.name:()Ljava/lang/String;
5: aload 4
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.version:()I
i2b
6: invokestatic io.netty.handler.codec.mqtt.MqttVersion.fromProtocolNameAndLevel:(Ljava/lang/String;B)Lio/netty/handler/codec/mqtt/MqttVersion;
astore 6
start local 6 7: aload 4
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.hasUserName:()Z
ifne 9
aload 4
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.hasPassword:()Z
ifeq 9
8: new io.netty.handler.codec.DecoderException
dup
ldc "Without a username, the password MUST be not set"
invokespecial io.netty.handler.codec.DecoderException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: io.netty.buffer.ByteBufAllocator io.netty.handler.codec.mqtt.MqttConnectMessage int io.netty.handler.codec.mqtt.MqttFixedHeader io.netty.handler.codec.mqtt.MqttConnectVariableHeader io.netty.handler.codec.mqtt.MqttConnectPayload io.netty.handler.codec.mqtt.MqttVersion
StackMap stack:
aload 5
invokevirtual io.netty.handler.codec.mqtt.MqttConnectPayload.clientIdentifier:()Ljava/lang/String;
astore 7
start local 7 10: aload 6
aload 7
invokestatic io.netty.handler.codec.mqtt.MqttCodecUtil.isValidClientId:(Lio/netty/handler/codec/mqtt/MqttVersion;Ljava/lang/String;)Z
ifne 12
11: new io.netty.handler.codec.mqtt.MqttIdentifierRejectedException
dup
new java.lang.StringBuilder
dup
ldc "invalid clientIdentifier: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.netty.handler.codec.mqtt.MqttIdentifierRejectedException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals: java.lang.String
StackMap stack:
aload 7
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.encodeStringUtf8:(Ljava/lang/String;)[B
astore 8
start local 8 13: iload 2
iconst_2
aload 8
arraylength
iadd
iadd
istore 2
14: aload 5
invokevirtual io.netty.handler.codec.mqtt.MqttConnectPayload.willTopic:()Ljava/lang/String;
astore 9
start local 9 15: aload 9
ifnull 16
aload 9
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.encodeStringUtf8:(Ljava/lang/String;)[B
goto 17
StackMap locals: byte[] java.lang.String
StackMap stack:
16: getstatic io.netty.util.internal.EmptyArrays.EMPTY_BYTES:[B
StackMap locals:
StackMap stack: byte[]
17: astore 10
start local 10 18: aload 5
invokevirtual io.netty.handler.codec.mqtt.MqttConnectPayload.willMessageInBytes:()[B
astore 11
start local 11 19: aload 11
ifnull 20
aload 11
goto 21
StackMap locals: byte[] byte[]
StackMap stack:
20: getstatic io.netty.util.internal.EmptyArrays.EMPTY_BYTES:[B
StackMap locals:
StackMap stack: byte[]
21: astore 12
start local 12 22: aload 4
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.isWillFlag:()Z
ifeq 25
23: iload 2
iconst_2
aload 10
arraylength
iadd
iadd
istore 2
24: iload 2
iconst_2
aload 12
arraylength
iadd
iadd
istore 2
25: StackMap locals: byte[]
StackMap stack:
aload 5
invokevirtual io.netty.handler.codec.mqtt.MqttConnectPayload.userName:()Ljava/lang/String;
astore 13
start local 13 26: aload 13
ifnull 27
aload 13
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.encodeStringUtf8:(Ljava/lang/String;)[B
goto 28
StackMap locals: java.lang.String
StackMap stack:
27: getstatic io.netty.util.internal.EmptyArrays.EMPTY_BYTES:[B
StackMap locals:
StackMap stack: byte[]
28: astore 14
start local 14 29: aload 4
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.hasUserName:()Z
ifeq 31
30: iload 2
iconst_2
aload 14
arraylength
iadd
iadd
istore 2
31: StackMap locals: byte[]
StackMap stack:
aload 5
invokevirtual io.netty.handler.codec.mqtt.MqttConnectPayload.passwordInBytes:()[B
astore 15
start local 15 32: aload 15
ifnull 33
aload 15
goto 34
StackMap locals: byte[]
StackMap stack:
33: getstatic io.netty.util.internal.EmptyArrays.EMPTY_BYTES:[B
StackMap locals:
StackMap stack: byte[]
34: astore 16
start local 16 35: aload 4
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.hasPassword:()Z
ifeq 37
36: iload 2
iconst_2
aload 16
arraylength
iadd
iadd
istore 2
37: StackMap locals: byte[]
StackMap stack:
aload 6
invokevirtual io.netty.handler.codec.mqtt.MqttVersion.protocolNameBytes:()[B
astore 17
start local 17 38: iconst_2
aload 17
arraylength
iadd
iconst_4
iadd
istore 18
start local 18 39: iload 18
iload 2
iadd
istore 19
start local 19 40: iconst_1
iload 19
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.getVariableLengthInt:(I)I
iadd
istore 20
start local 20 41: aload 0
iload 20
iload 19
iadd
invokeinterface io.netty.buffer.ByteBufAllocator.buffer:(I)Lio/netty/buffer/ByteBuf;
astore 21
start local 21 42: aload 21
aload 3
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.getFixedHeaderByte1:(Lio/netty/handler/codec/mqtt/MqttFixedHeader;)I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
43: aload 21
iload 19
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.writeVariableLengthInt:(Lio/netty/buffer/ByteBuf;I)V
44: aload 21
aload 17
arraylength
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
45: aload 21
aload 17
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([B)Lio/netty/buffer/ByteBuf;
pop
46: aload 21
aload 4
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.version:()I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
47: aload 21
aload 4
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.getConnVariableHeaderFlag:(Lio/netty/handler/codec/mqtt/MqttConnectVariableHeader;)I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
48: aload 21
aload 4
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.keepAliveTimeSeconds:()I
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
49: aload 21
aload 8
arraylength
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
50: aload 21
aload 8
iconst_0
aload 8
arraylength
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([BII)Lio/netty/buffer/ByteBuf;
pop
51: aload 4
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.isWillFlag:()Z
ifeq 56
52: aload 21
aload 10
arraylength
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
53: aload 21
aload 10
iconst_0
aload 10
arraylength
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([BII)Lio/netty/buffer/ByteBuf;
pop
54: aload 21
aload 12
arraylength
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
55: aload 21
aload 12
iconst_0
aload 12
arraylength
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([BII)Lio/netty/buffer/ByteBuf;
pop
56: StackMap locals: io.netty.buffer.ByteBufAllocator io.netty.handler.codec.mqtt.MqttConnectMessage int io.netty.handler.codec.mqtt.MqttFixedHeader io.netty.handler.codec.mqtt.MqttConnectVariableHeader io.netty.handler.codec.mqtt.MqttConnectPayload io.netty.handler.codec.mqtt.MqttVersion java.lang.String byte[] java.lang.String byte[] byte[] byte[] java.lang.String byte[] byte[] byte[] byte[] int int int io.netty.buffer.ByteBuf
StackMap stack:
aload 4
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.hasUserName:()Z
ifeq 59
57: aload 21
aload 14
arraylength
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
58: aload 21
aload 14
iconst_0
aload 14
arraylength
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([BII)Lio/netty/buffer/ByteBuf;
pop
59: StackMap locals:
StackMap stack:
aload 4
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.hasPassword:()Z
ifeq 62
60: aload 21
aload 16
arraylength
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
61: aload 21
aload 16
iconst_0
aload 16
arraylength
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([BII)Lio/netty/buffer/ByteBuf;
pop
62: StackMap locals:
StackMap stack:
aload 21
areturn
end local 21 end local 20 end local 19 end local 18 end local 17 end local 16 end local 15 end local 14 end local 13 end local 12 end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 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 63 0 byteBufAllocator Lio/netty/buffer/ByteBufAllocator;
0 63 1 message Lio/netty/handler/codec/mqtt/MqttConnectMessage;
1 63 2 payloadBufferSize I
2 63 3 mqttFixedHeader Lio/netty/handler/codec/mqtt/MqttFixedHeader;
3 63 4 variableHeader Lio/netty/handler/codec/mqtt/MqttConnectVariableHeader;
4 63 5 payload Lio/netty/handler/codec/mqtt/MqttConnectPayload;
7 63 6 mqttVersion Lio/netty/handler/codec/mqtt/MqttVersion;
10 63 7 clientIdentifier Ljava/lang/String;
13 63 8 clientIdentifierBytes [B
15 63 9 willTopic Ljava/lang/String;
18 63 10 willTopicBytes [B
19 63 11 willMessage [B
22 63 12 willMessageBytes [B
26 63 13 userName Ljava/lang/String;
29 63 14 userNameBytes [B
32 63 15 password [B
35 63 16 passwordBytes [B
38 63 17 protocolNameBytes [B
39 63 18 variableHeaderBufferSize I
40 63 19 variablePartSize I
41 63 20 fixedHeaderBufferSize I
42 63 21 buf Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
byteBufAllocator
message
private static int getConnVariableHeaderFlag(io.netty.handler.codec.mqtt.MqttConnectVariableHeader);
descriptor: (Lio/netty/handler/codec/mqtt/MqttConnectVariableHeader;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.hasUserName:()Z
ifeq 3
2: iload 1
sipush 128
ior
istore 1
3: StackMap locals: int
StackMap stack:
aload 0
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.hasPassword:()Z
ifeq 5
4: iload 1
bipush 64
ior
istore 1
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.isWillRetain:()Z
ifeq 7
6: iload 1
bipush 32
ior
istore 1
7: StackMap locals:
StackMap stack:
iload 1
aload 0
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.willQos:()I
iconst_3
iand
iconst_3
ishl
ior
istore 1
8: aload 0
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.isWillFlag:()Z
ifeq 10
9: iload 1
iconst_4
ior
istore 1
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual io.netty.handler.codec.mqtt.MqttConnectVariableHeader.isCleanSession:()Z
ifeq 12
11: iload 1
iconst_2
ior
istore 1
12: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 variableHeader Lio/netty/handler/codec/mqtt/MqttConnectVariableHeader;
1 13 1 flagByte I
MethodParameters:
Name Flags
variableHeader
private static io.netty.buffer.ByteBuf encodeConnAckMessage(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.mqtt.MqttConnAckMessage);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttConnAckMessage;)Lio/netty/buffer/ByteBuf;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
iconst_4
invokeinterface io.netty.buffer.ByteBufAllocator.buffer:(I)Lio/netty/buffer/ByteBuf;
astore 2
start local 2 1: aload 2
aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttConnAckMessage.fixedHeader:()Lio/netty/handler/codec/mqtt/MqttFixedHeader;
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.getFixedHeaderByte1:(Lio/netty/handler/codec/mqtt/MqttFixedHeader;)I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
2: aload 2
iconst_2
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
3: aload 2
aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttConnAckMessage.variableHeader:()Lio/netty/handler/codec/mqtt/MqttConnAckVariableHeader;
invokevirtual io.netty.handler.codec.mqtt.MqttConnAckVariableHeader.isSessionPresent:()Z
ifeq 4
iconst_1
goto 5
StackMap locals: io.netty.buffer.ByteBufAllocator io.netty.handler.codec.mqtt.MqttConnAckMessage io.netty.buffer.ByteBuf
StackMap stack: io.netty.buffer.ByteBuf
4: iconst_0
StackMap locals: io.netty.buffer.ByteBufAllocator io.netty.handler.codec.mqtt.MqttConnAckMessage io.netty.buffer.ByteBuf
StackMap stack: io.netty.buffer.ByteBuf int
5: invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
6: aload 2
aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttConnAckMessage.variableHeader:()Lio/netty/handler/codec/mqtt/MqttConnAckVariableHeader;
invokevirtual io.netty.handler.codec.mqtt.MqttConnAckVariableHeader.connectReturnCode:()Lio/netty/handler/codec/mqtt/MqttConnectReturnCode;
invokevirtual io.netty.handler.codec.mqtt.MqttConnectReturnCode.byteValue:()B
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
7: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 byteBufAllocator Lio/netty/buffer/ByteBufAllocator;
0 8 1 message Lio/netty/handler/codec/mqtt/MqttConnAckMessage;
1 8 2 buf Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
byteBufAllocator
message
private static io.netty.buffer.ByteBuf encodeSubscribeMessage(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.mqtt.MqttSubscribeMessage);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttSubscribeMessage;)Lio/netty/buffer/ByteBuf;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=15, args_size=2
start local 0 start local 1 0: iconst_2
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttSubscribeMessage.fixedHeader:()Lio/netty/handler/codec/mqtt/MqttFixedHeader;
astore 4
start local 4 3: aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttSubscribeMessage.variableHeader:()Lio/netty/handler/codec/mqtt/MqttMessageIdVariableHeader;
astore 5
start local 5 4: aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttSubscribeMessage.payload:()Lio/netty/handler/codec/mqtt/MqttSubscribePayload;
astore 6
start local 6 5: aload 6
invokevirtual io.netty.handler.codec.mqtt.MqttSubscribePayload.topicSubscriptions:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 11
StackMap locals: io.netty.buffer.ByteBufAllocator io.netty.handler.codec.mqtt.MqttSubscribeMessage int int io.netty.handler.codec.mqtt.MqttFixedHeader io.netty.handler.codec.mqtt.MqttMessageIdVariableHeader io.netty.handler.codec.mqtt.MqttSubscribePayload top java.util.Iterator
StackMap stack:
6: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.netty.handler.codec.mqtt.MqttTopicSubscription
astore 7
start local 7 7: aload 7
invokevirtual io.netty.handler.codec.mqtt.MqttTopicSubscription.topicName:()Ljava/lang/String;
astore 9
start local 9 8: aload 9
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.encodeStringUtf8:(Ljava/lang/String;)[B
astore 10
start local 10 9: iload 3
iconst_2
aload 10
arraylength
iadd
iadd
istore 3
10: iinc 3 1
end local 10 end local 9 end local 7 11: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
12: iload 2
iload 3
iadd
istore 7
start local 7 13: iconst_1
iload 7
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.getVariableLengthInt:(I)I
iadd
istore 8
start local 8 14: aload 0
iload 8
iload 7
iadd
invokeinterface io.netty.buffer.ByteBufAllocator.buffer:(I)Lio/netty/buffer/ByteBuf;
astore 9
start local 9 15: aload 9
aload 4
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.getFixedHeaderByte1:(Lio/netty/handler/codec/mqtt/MqttFixedHeader;)I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
16: aload 9
iload 7
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.writeVariableLengthInt:(Lio/netty/buffer/ByteBuf;I)V
17: aload 5
invokevirtual io.netty.handler.codec.mqtt.MqttMessageIdVariableHeader.messageId:()I
istore 10
start local 10 18: aload 9
iload 10
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
19: aload 6
invokevirtual io.netty.handler.codec.mqtt.MqttSubscribePayload.topicSubscriptions:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 12
goto 26
StackMap locals: io.netty.buffer.ByteBufAllocator io.netty.handler.codec.mqtt.MqttSubscribeMessage int int io.netty.handler.codec.mqtt.MqttFixedHeader io.netty.handler.codec.mqtt.MqttMessageIdVariableHeader io.netty.handler.codec.mqtt.MqttSubscribePayload int int io.netty.buffer.ByteBuf int top java.util.Iterator
StackMap stack:
20: aload 12
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.netty.handler.codec.mqtt.MqttTopicSubscription
astore 11
start local 11 21: aload 11
invokevirtual io.netty.handler.codec.mqtt.MqttTopicSubscription.topicName:()Ljava/lang/String;
astore 13
start local 13 22: aload 13
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.encodeStringUtf8:(Ljava/lang/String;)[B
astore 14
start local 14 23: aload 9
aload 14
arraylength
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
24: aload 9
aload 14
iconst_0
aload 14
arraylength
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([BII)Lio/netty/buffer/ByteBuf;
pop
25: aload 9
aload 11
invokevirtual io.netty.handler.codec.mqtt.MqttTopicSubscription.qualityOfService:()Lio/netty/handler/codec/mqtt/MqttQoS;
invokevirtual io.netty.handler.codec.mqtt.MqttQoS.value:()I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
end local 14 end local 13 end local 11 26: StackMap locals:
StackMap stack:
aload 12
invokeinterface java.util.Iterator.hasNext:()Z
ifne 20
27: aload 9
areturn
end local 10 end local 9 end local 8 end local 7 end local 6 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 28 0 byteBufAllocator Lio/netty/buffer/ByteBufAllocator;
0 28 1 message Lio/netty/handler/codec/mqtt/MqttSubscribeMessage;
1 28 2 variableHeaderBufferSize I
2 28 3 payloadBufferSize I
3 28 4 mqttFixedHeader Lio/netty/handler/codec/mqtt/MqttFixedHeader;
4 28 5 variableHeader Lio/netty/handler/codec/mqtt/MqttMessageIdVariableHeader;
5 28 6 payload Lio/netty/handler/codec/mqtt/MqttSubscribePayload;
7 11 7 topic Lio/netty/handler/codec/mqtt/MqttTopicSubscription;
8 11 9 topicName Ljava/lang/String;
9 11 10 topicNameBytes [B
13 28 7 variablePartSize I
14 28 8 fixedHeaderBufferSize I
15 28 9 buf Lio/netty/buffer/ByteBuf;
18 28 10 messageId I
21 26 11 topic Lio/netty/handler/codec/mqtt/MqttTopicSubscription;
22 26 13 topicName Ljava/lang/String;
23 26 14 topicNameBytes [B
MethodParameters:
Name Flags
byteBufAllocator
message
private static io.netty.buffer.ByteBuf encodeUnsubscribeMessage(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.mqtt.MqttUnsubscribeMessage);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttUnsubscribeMessage;)Lio/netty/buffer/ByteBuf;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=14, args_size=2
start local 0 start local 1 0: iconst_2
istore 2
start local 2 1: iconst_0
istore 3
start local 3 2: aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttUnsubscribeMessage.fixedHeader:()Lio/netty/handler/codec/mqtt/MqttFixedHeader;
astore 4
start local 4 3: aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttUnsubscribeMessage.variableHeader:()Lio/netty/handler/codec/mqtt/MqttMessageIdVariableHeader;
astore 5
start local 5 4: aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttUnsubscribeMessage.payload:()Lio/netty/handler/codec/mqtt/MqttUnsubscribePayload;
astore 6
start local 6 5: aload 6
invokevirtual io.netty.handler.codec.mqtt.MqttUnsubscribePayload.topics:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 9
StackMap locals: io.netty.buffer.ByteBufAllocator io.netty.handler.codec.mqtt.MqttUnsubscribeMessage int int io.netty.handler.codec.mqtt.MqttFixedHeader io.netty.handler.codec.mqtt.MqttMessageIdVariableHeader io.netty.handler.codec.mqtt.MqttUnsubscribePayload top java.util.Iterator
StackMap stack:
6: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 7
start local 7 7: aload 7
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.encodeStringUtf8:(Ljava/lang/String;)[B
astore 9
start local 9 8: iload 3
iconst_2
aload 9
arraylength
iadd
iadd
istore 3
end local 9 end local 7 9: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
10: iload 2
iload 3
iadd
istore 7
start local 7 11: iconst_1
iload 7
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.getVariableLengthInt:(I)I
iadd
istore 8
start local 8 12: aload 0
iload 8
iload 7
iadd
invokeinterface io.netty.buffer.ByteBufAllocator.buffer:(I)Lio/netty/buffer/ByteBuf;
astore 9
start local 9 13: aload 9
aload 4
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.getFixedHeaderByte1:(Lio/netty/handler/codec/mqtt/MqttFixedHeader;)I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
14: aload 9
iload 7
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.writeVariableLengthInt:(Lio/netty/buffer/ByteBuf;I)V
15: aload 5
invokevirtual io.netty.handler.codec.mqtt.MqttMessageIdVariableHeader.messageId:()I
istore 10
start local 10 16: aload 9
iload 10
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
17: aload 6
invokevirtual io.netty.handler.codec.mqtt.MqttUnsubscribePayload.topics:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 12
goto 22
StackMap locals: io.netty.buffer.ByteBufAllocator io.netty.handler.codec.mqtt.MqttUnsubscribeMessage int int io.netty.handler.codec.mqtt.MqttFixedHeader io.netty.handler.codec.mqtt.MqttMessageIdVariableHeader io.netty.handler.codec.mqtt.MqttUnsubscribePayload int int io.netty.buffer.ByteBuf int top java.util.Iterator
StackMap stack:
18: aload 12
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 11
start local 11 19: aload 11
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.encodeStringUtf8:(Ljava/lang/String;)[B
astore 13
start local 13 20: aload 9
aload 13
arraylength
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
21: aload 9
aload 13
iconst_0
aload 13
arraylength
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([BII)Lio/netty/buffer/ByteBuf;
pop
end local 13 end local 11 22: StackMap locals:
StackMap stack:
aload 12
invokeinterface java.util.Iterator.hasNext:()Z
ifne 18
23: aload 9
areturn
end local 10 end local 9 end local 8 end local 7 end local 6 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 24 0 byteBufAllocator Lio/netty/buffer/ByteBufAllocator;
0 24 1 message Lio/netty/handler/codec/mqtt/MqttUnsubscribeMessage;
1 24 2 variableHeaderBufferSize I
2 24 3 payloadBufferSize I
3 24 4 mqttFixedHeader Lio/netty/handler/codec/mqtt/MqttFixedHeader;
4 24 5 variableHeader Lio/netty/handler/codec/mqtt/MqttMessageIdVariableHeader;
5 24 6 payload Lio/netty/handler/codec/mqtt/MqttUnsubscribePayload;
7 9 7 topicName Ljava/lang/String;
8 9 9 topicNameBytes [B
11 24 7 variablePartSize I
12 24 8 fixedHeaderBufferSize I
13 24 9 buf Lio/netty/buffer/ByteBuf;
16 24 10 messageId I
19 22 11 topicName Ljava/lang/String;
20 22 13 topicNameBytes [B
MethodParameters:
Name Flags
byteBufAllocator
message
private static io.netty.buffer.ByteBuf encodeSubAckMessage(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.mqtt.MqttSubAckMessage);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttSubAckMessage;)Lio/netty/buffer/ByteBuf;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=9, args_size=2
start local 0 start local 1 0: iconst_2
istore 2
start local 2 1: aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttSubAckMessage.payload:()Lio/netty/handler/codec/mqtt/MqttSubAckPayload;
invokevirtual io.netty.handler.codec.mqtt.MqttSubAckPayload.grantedQoSLevels:()Ljava/util/List;
invokeinterface java.util.List.size:()I
istore 3
start local 3 2: iload 2
iload 3
iadd
istore 4
start local 4 3: iconst_1
iload 4
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.getVariableLengthInt:(I)I
iadd
istore 5
start local 5 4: aload 0
iload 5
iload 4
iadd
invokeinterface io.netty.buffer.ByteBufAllocator.buffer:(I)Lio/netty/buffer/ByteBuf;
astore 6
start local 6 5: aload 6
aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttSubAckMessage.fixedHeader:()Lio/netty/handler/codec/mqtt/MqttFixedHeader;
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.getFixedHeaderByte1:(Lio/netty/handler/codec/mqtt/MqttFixedHeader;)I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
6: aload 6
iload 4
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.writeVariableLengthInt:(Lio/netty/buffer/ByteBuf;I)V
7: aload 6
aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttSubAckMessage.variableHeader:()Lio/netty/handler/codec/mqtt/MqttMessageIdVariableHeader;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageIdVariableHeader.messageId:()I
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
8: aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttSubAckMessage.payload:()Lio/netty/handler/codec/mqtt/MqttSubAckPayload;
invokevirtual io.netty.handler.codec.mqtt.MqttSubAckPayload.grantedQoSLevels:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 11
StackMap locals: io.netty.buffer.ByteBufAllocator io.netty.handler.codec.mqtt.MqttSubAckMessage int int int int io.netty.buffer.ByteBuf top java.util.Iterator
StackMap stack:
9: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 7
start local 7 10: aload 6
iload 7
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
end local 7 11: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
12: aload 6
areturn
end local 6 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 13 0 byteBufAllocator Lio/netty/buffer/ByteBufAllocator;
0 13 1 message Lio/netty/handler/codec/mqtt/MqttSubAckMessage;
1 13 2 variableHeaderBufferSize I
2 13 3 payloadBufferSize I
3 13 4 variablePartSize I
4 13 5 fixedHeaderBufferSize I
5 13 6 buf Lio/netty/buffer/ByteBuf;
10 11 7 qos I
MethodParameters:
Name Flags
byteBufAllocator
message
private static io.netty.buffer.ByteBuf encodePublishMessage(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.mqtt.MqttPublishMessage);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttPublishMessage;)Lio/netty/buffer/ByteBuf;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=12, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttPublishMessage.fixedHeader:()Lio/netty/handler/codec/mqtt/MqttFixedHeader;
astore 2
start local 2 1: aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttPublishMessage.variableHeader:()Lio/netty/handler/codec/mqtt/MqttPublishVariableHeader;
astore 3
start local 3 2: aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttPublishMessage.payload:()Lio/netty/buffer/ByteBuf;
invokevirtual io.netty.buffer.ByteBuf.duplicate:()Lio/netty/buffer/ByteBuf;
astore 4
start local 4 3: aload 3
invokevirtual io.netty.handler.codec.mqtt.MqttPublishVariableHeader.topicName:()Ljava/lang/String;
astore 5
start local 5 4: aload 5
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.encodeStringUtf8:(Ljava/lang/String;)[B
astore 6
start local 6 5: iconst_2
aload 6
arraylength
iadd
6: aload 2
invokevirtual io.netty.handler.codec.mqtt.MqttFixedHeader.qosLevel:()Lio/netty/handler/codec/mqtt/MqttQoS;
invokevirtual io.netty.handler.codec.mqtt.MqttQoS.value:()I
ifle 7
iconst_2
goto 8
StackMap locals: io.netty.buffer.ByteBufAllocator io.netty.handler.codec.mqtt.MqttPublishMessage io.netty.handler.codec.mqtt.MqttFixedHeader io.netty.handler.codec.mqtt.MqttPublishVariableHeader io.netty.buffer.ByteBuf java.lang.String byte[]
StackMap stack: int
7: iconst_0
8: StackMap locals: io.netty.buffer.ByteBufAllocator io.netty.handler.codec.mqtt.MqttPublishMessage io.netty.handler.codec.mqtt.MqttFixedHeader io.netty.handler.codec.mqtt.MqttPublishVariableHeader io.netty.buffer.ByteBuf java.lang.String byte[]
StackMap stack: int int
iadd
istore 7
start local 7 9: aload 4
invokevirtual io.netty.buffer.ByteBuf.readableBytes:()I
istore 8
start local 8 10: iload 7
iload 8
iadd
istore 9
start local 9 11: iconst_1
iload 9
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.getVariableLengthInt:(I)I
iadd
istore 10
start local 10 12: aload 0
iload 10
iload 9
iadd
invokeinterface io.netty.buffer.ByteBufAllocator.buffer:(I)Lio/netty/buffer/ByteBuf;
astore 11
start local 11 13: aload 11
aload 2
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.getFixedHeaderByte1:(Lio/netty/handler/codec/mqtt/MqttFixedHeader;)I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
14: aload 11
iload 9
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.writeVariableLengthInt:(Lio/netty/buffer/ByteBuf;I)V
15: aload 11
aload 6
arraylength
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
16: aload 11
aload 6
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([B)Lio/netty/buffer/ByteBuf;
pop
17: aload 2
invokevirtual io.netty.handler.codec.mqtt.MqttFixedHeader.qosLevel:()Lio/netty/handler/codec/mqtt/MqttQoS;
invokevirtual io.netty.handler.codec.mqtt.MqttQoS.value:()I
ifle 19
18: aload 11
aload 3
invokevirtual io.netty.handler.codec.mqtt.MqttPublishVariableHeader.messageId:()I
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
19: StackMap locals: io.netty.buffer.ByteBufAllocator io.netty.handler.codec.mqtt.MqttPublishMessage io.netty.handler.codec.mqtt.MqttFixedHeader io.netty.handler.codec.mqtt.MqttPublishVariableHeader io.netty.buffer.ByteBuf java.lang.String byte[] int int int int io.netty.buffer.ByteBuf
StackMap stack:
aload 11
aload 4
invokevirtual io.netty.buffer.ByteBuf.writeBytes:(Lio/netty/buffer/ByteBuf;)Lio/netty/buffer/ByteBuf;
pop
20: aload 11
areturn
end local 11 end local 10 end local 9 end local 8 end local 7 end local 6 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 21 0 byteBufAllocator Lio/netty/buffer/ByteBufAllocator;
0 21 1 message Lio/netty/handler/codec/mqtt/MqttPublishMessage;
1 21 2 mqttFixedHeader Lio/netty/handler/codec/mqtt/MqttFixedHeader;
2 21 3 variableHeader Lio/netty/handler/codec/mqtt/MqttPublishVariableHeader;
3 21 4 payload Lio/netty/buffer/ByteBuf;
4 21 5 topicName Ljava/lang/String;
5 21 6 topicNameBytes [B
9 21 7 variableHeaderBufferSize I
10 21 8 payloadBufferSize I
11 21 9 variablePartSize I
12 21 10 fixedHeaderBufferSize I
13 21 11 buf Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
byteBufAllocator
message
private static io.netty.buffer.ByteBuf encodeMessageWithOnlySingleByteFixedHeaderAndMessageId(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.mqtt.MqttMessage);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttMessage;)Lio/netty/buffer/ByteBuf;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=8, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttMessage.fixedHeader:()Lio/netty/handler/codec/mqtt/MqttFixedHeader;
astore 2
start local 2 1: aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttMessage.variableHeader:()Ljava/lang/Object;
checkcast io.netty.handler.codec.mqtt.MqttMessageIdVariableHeader
astore 3
start local 3 2: aload 3
invokevirtual io.netty.handler.codec.mqtt.MqttMessageIdVariableHeader.messageId:()I
istore 4
start local 4 3: iconst_2
istore 5
start local 5 4: iconst_1
iload 5
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.getVariableLengthInt:(I)I
iadd
istore 6
start local 6 5: aload 0
iload 6
iload 5
iadd
invokeinterface io.netty.buffer.ByteBufAllocator.buffer:(I)Lio/netty/buffer/ByteBuf;
astore 7
start local 7 6: aload 7
aload 2
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.getFixedHeaderByte1:(Lio/netty/handler/codec/mqtt/MqttFixedHeader;)I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
7: aload 7
iload 5
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.writeVariableLengthInt:(Lio/netty/buffer/ByteBuf;I)V
8: aload 7
iload 4
invokevirtual io.netty.buffer.ByteBuf.writeShort:(I)Lio/netty/buffer/ByteBuf;
pop
9: aload 7
areturn
end local 7 end local 6 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 10 0 byteBufAllocator Lio/netty/buffer/ByteBufAllocator;
0 10 1 message Lio/netty/handler/codec/mqtt/MqttMessage;
1 10 2 mqttFixedHeader Lio/netty/handler/codec/mqtt/MqttFixedHeader;
2 10 3 variableHeader Lio/netty/handler/codec/mqtt/MqttMessageIdVariableHeader;
3 10 4 msgId I
4 10 5 variableHeaderBufferSize I
5 10 6 fixedHeaderBufferSize I
6 10 7 buf Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
byteBufAllocator
message
private static io.netty.buffer.ByteBuf encodeMessageWithOnlySingleByteFixedHeader(io.netty.buffer.ByteBufAllocator, io.netty.handler.codec.mqtt.MqttMessage);
descriptor: (Lio/netty/buffer/ByteBufAllocator;Lio/netty/handler/codec/mqtt/MqttMessage;)Lio/netty/buffer/ByteBuf;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual io.netty.handler.codec.mqtt.MqttMessage.fixedHeader:()Lio/netty/handler/codec/mqtt/MqttFixedHeader;
astore 2
start local 2 1: aload 0
iconst_2
invokeinterface io.netty.buffer.ByteBufAllocator.buffer:(I)Lio/netty/buffer/ByteBuf;
astore 3
start local 3 2: aload 3
aload 2
invokestatic io.netty.handler.codec.mqtt.MqttEncoder.getFixedHeaderByte1:(Lio/netty/handler/codec/mqtt/MqttFixedHeader;)I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
3: aload 3
iconst_0
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
4: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 byteBufAllocator Lio/netty/buffer/ByteBufAllocator;
0 5 1 message Lio/netty/handler/codec/mqtt/MqttMessage;
1 5 2 mqttFixedHeader Lio/netty/handler/codec/mqtt/MqttFixedHeader;
2 5 3 buf Lio/netty/buffer/ByteBuf;
MethodParameters:
Name Flags
byteBufAllocator
message
private static int getFixedHeaderByte1(io.netty.handler.codec.mqtt.MqttFixedHeader);
descriptor: (Lio/netty/handler/codec/mqtt/MqttFixedHeader;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: iload 1
aload 0
invokevirtual io.netty.handler.codec.mqtt.MqttFixedHeader.messageType:()Lio/netty/handler/codec/mqtt/MqttMessageType;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageType.value:()I
iconst_4
ishl
ior
istore 1
2: aload 0
invokevirtual io.netty.handler.codec.mqtt.MqttFixedHeader.isDup:()Z
ifeq 4
3: iload 1
bipush 8
ior
istore 1
4: StackMap locals: int
StackMap stack:
iload 1
aload 0
invokevirtual io.netty.handler.codec.mqtt.MqttFixedHeader.qosLevel:()Lio/netty/handler/codec/mqtt/MqttQoS;
invokevirtual io.netty.handler.codec.mqtt.MqttQoS.value:()I
iconst_1
ishl
ior
istore 1
5: aload 0
invokevirtual io.netty.handler.codec.mqtt.MqttFixedHeader.isRetain:()Z
ifeq 7
6: iload 1
iconst_1
ior
istore 1
7: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 header Lio/netty/handler/codec/mqtt/MqttFixedHeader;
1 8 1 ret I
MethodParameters:
Name Flags
header
private static void writeVariableLengthInt(io.netty.buffer.ByteBuf, int);
descriptor: (Lio/netty/buffer/ByteBuf;I)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: StackMap locals:
StackMap stack:
iload 1
sipush 128
irem
istore 2
start local 2 1: iload 1
sipush 128
idiv
istore 1
2: iload 1
ifle 4
3: iload 2
sipush 128
ior
istore 2
4: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
end local 2 5: iload 1
6: ifgt 0
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 buf Lio/netty/buffer/ByteBuf;
0 8 1 num I
1 5 2 digit I
MethodParameters:
Name Flags
buf
num
private static int getVariableLengthInt(int);
descriptor: (I)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: StackMap locals: int
StackMap stack:
iload 0
sipush 128
idiv
istore 0
2: iinc 1 1
3: iload 0
4: ifgt 1
5: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 num I
1 6 1 count I
MethodParameters:
Name Flags
num
private static byte[] encodeStringUtf8(java.lang.String);
descriptor: (Ljava/lang/String;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic io.netty.util.CharsetUtil.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/String;
MethodParameters:
Name Flags
s
protected void encode(io.netty.channel.ChannelHandlerContext, java.lang.Object, java.util.List);
descriptor: (Lio/netty/channel/ChannelHandlerContext;Ljava/lang/Object;Ljava/util/List;)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.handler.codec.mqtt.MqttMessage
aload 3
invokevirtual io.netty.handler.codec.mqtt.MqttEncoder.encode:(Lio/netty/channel/ChannelHandlerContext;Lio/netty/handler/codec/mqtt/MqttMessage;Ljava/util/List;)V
return
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
static int[] $SWITCH_TABLE$io$netty$handler$codec$mqtt$MqttMessageType();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic io.netty.handler.codec.mqtt.MqttEncoder.$SWITCH_TABLE$io$netty$handler$codec$mqtt$MqttMessageType:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic io.netty.handler.codec.mqtt.MqttMessageType.values:()[Lio/netty/handler/codec/mqtt/MqttMessageType;
arraylength
newarray 10
astore 0
2: aload 0
getstatic io.netty.handler.codec.mqtt.MqttMessageType.CONNACK:Lio/netty/handler/codec/mqtt/MqttMessageType;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageType.ordinal:()I
iconst_2
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic io.netty.handler.codec.mqtt.MqttMessageType.CONNECT:Lio/netty/handler/codec/mqtt/MqttMessageType;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageType.ordinal:()I
iconst_1
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic io.netty.handler.codec.mqtt.MqttMessageType.DISCONNECT:Lio/netty/handler/codec/mqtt/MqttMessageType;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageType.ordinal:()I
bipush 14
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic io.netty.handler.codec.mqtt.MqttMessageType.PINGREQ:Lio/netty/handler/codec/mqtt/MqttMessageType;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageType.ordinal:()I
bipush 12
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic io.netty.handler.codec.mqtt.MqttMessageType.PINGRESP:Lio/netty/handler/codec/mqtt/MqttMessageType;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageType.ordinal:()I
bipush 13
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
getstatic io.netty.handler.codec.mqtt.MqttMessageType.PUBACK:Lio/netty/handler/codec/mqtt/MqttMessageType;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageType.ordinal:()I
iconst_4
iastore
18: goto 20
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
19: pop
StackMap locals:
StackMap stack:
20: aload 0
getstatic io.netty.handler.codec.mqtt.MqttMessageType.PUBCOMP:Lio/netty/handler/codec/mqtt/MqttMessageType;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageType.ordinal:()I
bipush 7
iastore
21: goto 23
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
22: pop
StackMap locals:
StackMap stack:
23: aload 0
getstatic io.netty.handler.codec.mqtt.MqttMessageType.PUBLISH:Lio/netty/handler/codec/mqtt/MqttMessageType;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageType.ordinal:()I
iconst_3
iastore
24: goto 26
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
25: pop
StackMap locals:
StackMap stack:
26: aload 0
getstatic io.netty.handler.codec.mqtt.MqttMessageType.PUBREC:Lio/netty/handler/codec/mqtt/MqttMessageType;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageType.ordinal:()I
iconst_5
iastore
27: goto 29
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
28: pop
StackMap locals:
StackMap stack:
29: aload 0
getstatic io.netty.handler.codec.mqtt.MqttMessageType.PUBREL:Lio/netty/handler/codec/mqtt/MqttMessageType;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageType.ordinal:()I
bipush 6
iastore
30: goto 32
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
31: pop
StackMap locals:
StackMap stack:
32: aload 0
getstatic io.netty.handler.codec.mqtt.MqttMessageType.SUBACK:Lio/netty/handler/codec/mqtt/MqttMessageType;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageType.ordinal:()I
bipush 9
iastore
33: goto 35
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
34: pop
StackMap locals:
StackMap stack:
35: aload 0
getstatic io.netty.handler.codec.mqtt.MqttMessageType.SUBSCRIBE:Lio/netty/handler/codec/mqtt/MqttMessageType;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageType.ordinal:()I
bipush 8
iastore
36: goto 38
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
37: pop
StackMap locals:
StackMap stack:
38: aload 0
getstatic io.netty.handler.codec.mqtt.MqttMessageType.UNSUBACK:Lio/netty/handler/codec/mqtt/MqttMessageType;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageType.ordinal:()I
bipush 11
iastore
39: goto 41
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
40: pop
StackMap locals:
StackMap stack:
41: aload 0
getstatic io.netty.handler.codec.mqtt.MqttMessageType.UNSUBSCRIBE:Lio/netty/handler/codec/mqtt/MqttMessageType;
invokevirtual io.netty.handler.codec.mqtt.MqttMessageType.ordinal:()I
bipush 10
iastore
42: goto 44
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
43: pop
StackMap locals:
StackMap stack:
44: aload 0
dup
putstatic io.netty.handler.codec.mqtt.MqttEncoder.$SWITCH_TABLE$io$netty$handler$codec$mqtt$MqttMessageType:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
17 18 19 Class java.lang.NoSuchFieldError
20 21 22 Class java.lang.NoSuchFieldError
23 24 25 Class java.lang.NoSuchFieldError
26 27 28 Class java.lang.NoSuchFieldError
29 30 31 Class java.lang.NoSuchFieldError
32 33 34 Class java.lang.NoSuchFieldError
35 36 37 Class java.lang.NoSuchFieldError
38 39 40 Class java.lang.NoSuchFieldError
41 42 43 Class java.lang.NoSuchFieldError
}
Signature: Lio/netty/handler/codec/MessageToMessageEncoder<Lio/netty/handler/codec/mqtt/MqttMessage;>;
SourceFile: "MqttEncoder.java"
InnerClasses:
public abstract Sharable = io.netty.channel.ChannelHandler$Sharable of io.netty.channel.ChannelHandler
RuntimeVisibleAnnotations:
io.netty.channel.ChannelHandler$Sharable()