public final class io.netty.channel.unix.NativeInetAddress
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.netty.channel.unix.NativeInetAddress
super_class: java.lang.Object
{
private static final byte[] IPV4_MAPPED_IPV6_PREFIX;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
final byte[] address;
descriptor: [B
flags: (0x0010) ACC_FINAL
final int scopeId;
descriptor: I
flags: (0x0010) ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: bipush 12
newarray 8
dup
bipush 10
1: iconst_m1
bastore
dup
bipush 11
iconst_m1
bastore
2: putstatic io.netty.channel.unix.NativeInetAddress.IPV4_MAPPED_IPV6_PREFIX:[B
3: return
LocalVariableTable:
Start End Slot Name Signature
public static io.netty.channel.unix.NativeInetAddress newInstance(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Lio/netty/channel/unix/NativeInetAddress;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.net.InetAddress.getAddress:()[B
astore 1
start local 1 1: aload 0
instanceof java.net.Inet6Address
ifeq 3
2: new io.netty.channel.unix.NativeInetAddress
dup
aload 1
aload 0
checkcast java.net.Inet6Address
invokevirtual java.net.Inet6Address.getScopeId:()I
invokespecial io.netty.channel.unix.NativeInetAddress.<init>:([BI)V
areturn
3: StackMap locals: byte[]
StackMap stack:
new io.netty.channel.unix.NativeInetAddress
dup
aload 1
invokestatic io.netty.channel.unix.NativeInetAddress.ipv4MappedIpv6Address:([B)[B
invokespecial io.netty.channel.unix.NativeInetAddress.<init>:([B)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 addr Ljava/net/InetAddress;
1 4 1 bytes [B
MethodParameters:
Name Flags
addr
public void <init>(byte[], int);
descriptor: ([BI)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.netty.channel.unix.NativeInetAddress.address:[B
2: aload 0
iload 2
putfield io.netty.channel.unix.NativeInetAddress.scopeId:I
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/netty/channel/unix/NativeInetAddress;
0 4 1 address [B
0 4 2 scopeId I
MethodParameters:
Name Flags
address
scopeId
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokespecial io.netty.channel.unix.NativeInetAddress.<init>:([BI)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/channel/unix/NativeInetAddress;
0 2 1 address [B
MethodParameters:
Name Flags
address
public byte[] address();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.channel.unix.NativeInetAddress.address:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/channel/unix/NativeInetAddress;
public int scopeId();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.netty.channel.unix.NativeInetAddress.scopeId:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/channel/unix/NativeInetAddress;
public static byte[] ipv4MappedIpv6Address(byte[]);
descriptor: ([B)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: bipush 16
newarray 8
astore 1
start local 1 1: getstatic io.netty.channel.unix.NativeInetAddress.IPV4_MAPPED_IPV6_PREFIX:[B
iconst_0
aload 1
iconst_0
getstatic io.netty.channel.unix.NativeInetAddress.IPV4_MAPPED_IPV6_PREFIX:[B
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
2: aload 0
iconst_0
aload 1
bipush 12
aload 0
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 ipv4 [B
1 4 1 address [B
MethodParameters:
Name Flags
ipv4
public static java.net.InetSocketAddress address(byte[], int, int);
descriptor: ([BII)Ljava/net/InetSocketAddress;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
iload 2
iadd
iconst_4
isub
invokestatic io.netty.channel.unix.NativeInetAddress.decodeInt:([BI)I
istore 3
start local 3 1: iload 2
lookupswitch { // 2
8: 2
24: 6
default: 11
}
2: StackMap locals: int
StackMap stack:
iconst_4
newarray 8
astore 5
start local 5 3: aload 0
iload 1
aload 5
iconst_0
iconst_4
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 5
invokestatic java.net.InetAddress.getByAddress:([B)Ljava/net/InetAddress;
astore 4
start local 4 5: goto 12
end local 5 end local 4 6: StackMap locals:
StackMap stack:
bipush 16
newarray 8
astore 6
start local 6 7: aload 0
iload 1
aload 6
iconst_0
bipush 16
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
8: aload 0
iload 1
iload 2
iadd
bipush 8
isub
invokestatic io.netty.channel.unix.NativeInetAddress.decodeInt:([BI)I
istore 7
start local 7 9: aconst_null
aload 6
iload 7
invokestatic java.net.Inet6Address.getByAddress:(Ljava/lang/String;[BI)Ljava/net/Inet6Address;
astore 4
start local 4 10: goto 12
end local 7 end local 6 end local 4 11: StackMap locals:
StackMap stack:
new java.lang.Error
dup
invokespecial java.lang.Error.<init>:()V
athrow
start local 4 12: StackMap locals: java.net.InetAddress
StackMap stack:
new java.net.InetSocketAddress
dup
aload 4
iload 3
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
13: areturn
end local 4 14: StackMap locals: byte[] int int int
StackMap stack: java.net.UnknownHostException
astore 5
start local 5 15: new java.lang.Error
dup
ldc "Should never happen"
aload 5
invokespecial java.lang.Error.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 addr [B
0 16 1 offset I
0 16 2 len I
1 16 3 port I
5 6 4 address Ljava/net/InetAddress;
10 11 4 address Ljava/net/InetAddress;
12 14 4 address Ljava/net/InetAddress;
3 6 5 ipv4 [B
7 11 6 ipv6 [B
9 11 7 scopeId I
15 16 5 e Ljava/net/UnknownHostException;
Exception table:
from to target type
1 13 14 Class java.net.UnknownHostException
MethodParameters:
Name Flags
addr
offset
len
static int decodeInt(byte[], int);
descriptor: ([BI)I
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
baload
sipush 255
iand
bipush 24
ishl
1: aload 0
iload 1
iconst_1
iadd
baload
sipush 255
iand
bipush 16
ishl
2: ior
3: aload 0
iload 1
iconst_2
iadd
baload
sipush 255
iand
bipush 8
ishl
4: ior
5: aload 0
iload 1
iconst_3
iadd
baload
sipush 255
iand
6: ior
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 addr [B
0 7 1 index I
MethodParameters:
Name Flags
addr
index
}
SourceFile: "NativeInetAddress.java"