class io.netty.handler.codec.socksx.v5.Socks5AddressDecoder$1 implements io.netty.handler.codec.socksx.v5.Socks5AddressDecoder
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: io.netty.handler.codec.socksx.v5.Socks5AddressDecoder$1
super_class: java.lang.Object
{
private static final int IPv6_LEN;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 16
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 // io.netty.handler.codec.socksx.v5.Socks5AddressDecoder$1 this
0: .line 32
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // io.netty.handler.codec.socksx.v5.Socks5AddressDecoder$1 this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/handler/codec/socksx/v5/Socks5AddressDecoder$1;
public java.lang.String decodeAddress(io.netty.handler.codec.socksx.v5.Socks5AddressType, io.netty.buffer.ByteBuf);
descriptor: (Lio/netty/handler/codec/socksx/v5/Socks5AddressType;Lio/netty/buffer/ByteBuf;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 // io.netty.handler.codec.socksx.v5.Socks5AddressDecoder$1 this
start local 1 // io.netty.handler.codec.socksx.v5.Socks5AddressType addrType
start local 2 // io.netty.buffer.ByteBuf in
0: .line 38
aload 1 /* addrType */
getstatic io.netty.handler.codec.socksx.v5.Socks5AddressType.IPv4:Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
if_acmpne 2
1: .line 39
aload 2 /* in */
invokevirtual io.netty.buffer.ByteBuf.readInt:()I
invokestatic io.netty.util.NetUtil.intToIpAddress:(I)Ljava/lang/String;
areturn
2: .line 41
StackMap locals:
StackMap stack:
aload 1 /* addrType */
getstatic io.netty.handler.codec.socksx.v5.Socks5AddressType.DOMAIN:Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
if_acmpne 7
3: .line 42
aload 2 /* in */
invokevirtual io.netty.buffer.ByteBuf.readUnsignedByte:()S
istore 3 /* length */
start local 3 // int length
4: .line 43
aload 2 /* in */
aload 2 /* in */
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
iload 3 /* length */
getstatic io.netty.util.CharsetUtil.US_ASCII:Ljava/nio/charset/Charset;
invokevirtual io.netty.buffer.ByteBuf.toString:(IILjava/nio/charset/Charset;)Ljava/lang/String;
astore 4 /* domain */
start local 4 // java.lang.String domain
5: .line 44
aload 2 /* in */
iload 3 /* length */
invokevirtual io.netty.buffer.ByteBuf.skipBytes:(I)Lio/netty/buffer/ByteBuf;
pop
6: .line 45
aload 4 /* domain */
areturn
end local 4 // java.lang.String domain
end local 3 // int length
7: .line 47
StackMap locals:
StackMap stack:
aload 1 /* addrType */
getstatic io.netty.handler.codec.socksx.v5.Socks5AddressType.IPv6:Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
if_acmpne 15
8: .line 48
aload 2 /* in */
invokevirtual io.netty.buffer.ByteBuf.hasArray:()Z
ifeq 12
9: .line 49
aload 2 /* in */
invokevirtual io.netty.buffer.ByteBuf.readerIndex:()I
istore 3 /* readerIdx */
start local 3 // int readerIdx
10: .line 50
aload 2 /* in */
iload 3 /* readerIdx */
bipush 16
iadd
invokevirtual io.netty.buffer.ByteBuf.readerIndex:(I)Lio/netty/buffer/ByteBuf;
pop
11: .line 51
aload 2 /* in */
invokevirtual io.netty.buffer.ByteBuf.array:()[B
aload 2 /* in */
invokevirtual io.netty.buffer.ByteBuf.arrayOffset:()I
iload 3 /* readerIdx */
iadd
bipush 16
invokestatic io.netty.util.NetUtil.bytesToIpAddress:([BII)Ljava/lang/String;
areturn
end local 3 // int readerIdx
12: .line 53
StackMap locals:
StackMap stack:
bipush 16
newarray 8
astore 3 /* tmp */
start local 3 // byte[] tmp
13: .line 54
aload 2 /* in */
aload 3 /* tmp */
invokevirtual io.netty.buffer.ByteBuf.readBytes:([B)Lio/netty/buffer/ByteBuf;
pop
14: .line 55
aload 3 /* tmp */
invokestatic io.netty.util.NetUtil.bytesToIpAddress:([B)Ljava/lang/String;
areturn
end local 3 // byte[] tmp
15: .line 58
StackMap locals:
StackMap stack:
new io.netty.handler.codec.DecoderException
dup
new java.lang.StringBuilder
dup
ldc "unsupported address type: "
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.DecoderException.<init>:(Ljava/lang/String;)V
athrow
end local 2 // io.netty.buffer.ByteBuf in
end local 1 // io.netty.handler.codec.socksx.v5.Socks5AddressType addrType
end local 0 // io.netty.handler.codec.socksx.v5.Socks5AddressDecoder$1 this
LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lio/netty/handler/codec/socksx/v5/Socks5AddressDecoder$1;
0 16 1 addrType Lio/netty/handler/codec/socksx/v5/Socks5AddressType;
0 16 2 in Lio/netty/buffer/ByteBuf;
4 7 3 length I
5 7 4 domain Ljava/lang/String;
10 12 3 readerIdx I
13 15 3 tmp [B
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
addrType
in
}
SourceFile: "Socks5AddressDecoder.java"
EnclosingMethod: io.netty.handler.codec.socksx.v5.Socks5AddressDecoder
NestHost: io.netty.handler.codec.socksx.v5.Socks5AddressDecoder
InnerClasses:
io.netty.handler.codec.socksx.v5.Socks5AddressDecoder$1