class io.netty.handler.codec.socksx.v5.Socks5AddressEncoder$1 implements io.netty.handler.codec.socksx.v5.Socks5AddressEncoder
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: io.netty.handler.codec.socksx.v5.Socks5AddressEncoder$1
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 // io.netty.handler.codec.socksx.v5.Socks5AddressEncoder$1 this
0: .line 32
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // io.netty.handler.codec.socksx.v5.Socks5AddressEncoder$1 this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder$1;
public void encodeAddress(io.netty.handler.codec.socksx.v5.Socks5AddressType, java.lang.String, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/handler/codec/socksx/v5/Socks5AddressType;Ljava/lang/String;Lio/netty/buffer/ByteBuf;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 // io.netty.handler.codec.socksx.v5.Socks5AddressEncoder$1 this
start local 1 // io.netty.handler.codec.socksx.v5.Socks5AddressType addrType
start local 2 // java.lang.String addrValue
start local 3 // io.netty.buffer.ByteBuf out
0: .line 35
aload 1 /* addrType */
invokevirtual io.netty.handler.codec.socksx.v5.Socks5AddressType.byteValue:()B
istore 4 /* typeVal */
start local 4 // byte typeVal
1: .line 36
iload 4 /* typeVal */
getstatic io.netty.handler.codec.socksx.v5.Socks5AddressType.IPv4:Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
invokevirtual io.netty.handler.codec.socksx.v5.Socks5AddressType.byteValue:()B
if_icmpne 7
2: .line 37
aload 2 /* addrValue */
ifnull 5
3: .line 38
aload 3 /* out */
aload 2 /* addrValue */
invokestatic io.netty.util.NetUtil.createByteArrayFromIpAddressString:(Ljava/lang/String;)[B
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([B)Lio/netty/buffer/ByteBuf;
pop
4: .line 39
goto 23
5: .line 40
StackMap locals: int
StackMap stack:
aload 3 /* out */
iconst_0
invokevirtual io.netty.buffer.ByteBuf.writeInt:(I)Lio/netty/buffer/ByteBuf;
pop
6: .line 42
goto 23
StackMap locals:
StackMap stack:
7: iload 4 /* typeVal */
getstatic io.netty.handler.codec.socksx.v5.Socks5AddressType.DOMAIN:Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
invokevirtual io.netty.handler.codec.socksx.v5.Socks5AddressType.byteValue:()B
if_icmpne 15
8: .line 43
aload 2 /* addrValue */
ifnull 12
9: .line 44
aload 3 /* out */
aload 2 /* addrValue */
invokevirtual java.lang.String.length:()I
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
10: .line 45
aload 3 /* out */
aload 2 /* addrValue */
getstatic io.netty.util.CharsetUtil.US_ASCII:Ljava/nio/charset/Charset;
invokevirtual io.netty.buffer.ByteBuf.writeCharSequence:(Ljava/lang/CharSequence;Ljava/nio/charset/Charset;)I
pop
11: .line 46
goto 23
12: .line 47
StackMap locals:
StackMap stack:
aload 3 /* out */
iconst_1
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
13: .line 48
aload 3 /* out */
iconst_0
invokevirtual io.netty.buffer.ByteBuf.writeByte:(I)Lio/netty/buffer/ByteBuf;
pop
14: .line 50
goto 23
StackMap locals:
StackMap stack:
15: iload 4 /* typeVal */
getstatic io.netty.handler.codec.socksx.v5.Socks5AddressType.IPv6:Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
invokevirtual io.netty.handler.codec.socksx.v5.Socks5AddressType.byteValue:()B
if_icmpne 22
16: .line 51
aload 2 /* addrValue */
ifnull 19
17: .line 52
aload 3 /* out */
aload 2 /* addrValue */
invokestatic io.netty.util.NetUtil.createByteArrayFromIpAddressString:(Ljava/lang/String;)[B
invokevirtual io.netty.buffer.ByteBuf.writeBytes:([B)Lio/netty/buffer/ByteBuf;
pop
18: .line 53
goto 23
19: .line 54
StackMap locals:
StackMap stack:
aload 3 /* out */
lconst_0
invokevirtual io.netty.buffer.ByteBuf.writeLong:(J)Lio/netty/buffer/ByteBuf;
pop
20: .line 55
aload 3 /* out */
lconst_0
invokevirtual io.netty.buffer.ByteBuf.writeLong:(J)Lio/netty/buffer/ByteBuf;
pop
21: .line 57
goto 23
22: .line 58
StackMap locals:
StackMap stack:
new io.netty.handler.codec.EncoderException
dup
new java.lang.StringBuilder
dup
ldc "unsupported addrType: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1 /* addrType */
invokevirtual io.netty.handler.codec.socksx.v5.Socks5AddressType.byteValue:()B
sipush 255
iand
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.netty.handler.codec.EncoderException.<init>:(Ljava/lang/String;)V
athrow
23: .line 60
StackMap locals:
StackMap stack:
return
end local 4 // byte typeVal
end local 3 // io.netty.buffer.ByteBuf out
end local 2 // java.lang.String addrValue
end local 1 // io.netty.handler.codec.socksx.v5.Socks5AddressType addrType
end local 0 // io.netty.handler.codec.socksx.v5.Socks5AddressEncoder$1 this
LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lio/netty/handler/codec/socksx/v5/Socks5AddressEncoder$1;
0 24 1 addrType Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
0 24 2 addrValue Ljava/lang/String;
0 24 3 out Lio/netty/buffer/ByteBuf;
1 24 4 typeVal B
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
addrType
addrValue
out
}
SourceFile: "Socks5AddressEncoder.java"
EnclosingMethod: io.netty.handler.codec.socksx.v5.Socks5AddressEncoder
NestHost: io.netty.handler.codec.socksx.v5.Socks5AddressEncoder
InnerClasses:
io.netty.handler.codec.socksx.v5.Socks5AddressEncoder$1