public final class org.hibernate.internal.util.BytesHelper
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.hibernate.internal.util.BytesHelper
super_class: java.lang.Object
{
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 // org.hibernate.internal.util.BytesHelper this
0: .line 12
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 13
return
end local 0 // org.hibernate.internal.util.BytesHelper this
LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/hibernate/internal/util/BytesHelper;
public static int toInt(byte[]);
descriptor: ([B)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 // byte[] bytes
0: .line 25
iconst_0
istore 1 /* result */
start local 1 // int result
1: .line 26
iconst_0
istore 2 /* i */
start local 2 // int i
2: goto 5
3: .line 27
StackMap locals: int int
StackMap stack:
iload 1 /* result */
bipush 8
ishl
bipush -128
isub
aload 0 /* bytes */
iload 2 /* i */
baload
iadd
istore 1 /* result */
4: .line 26
iinc 2 /* i */ 1
StackMap locals:
StackMap stack:
5: iload 2 /* i */
iconst_4
if_icmplt 3
end local 2 // int i
6: .line 29
iload 1 /* result */
ireturn
end local 1 // int result
end local 0 // byte[] bytes
LocalVariableTable:
Start End Slot Name Signature
0 7 0 bytes [B
1 7 1 result I
2 6 2 i I
MethodParameters:
Name Flags
bytes
public static byte[] fromShort(int);
descriptor: (I)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 // int shortValue
0: .line 40
iconst_2
newarray 8
astore 1 /* bytes */
start local 1 // byte[] bytes
1: .line 41
aload 1 /* bytes */
iconst_0
iload 0 /* shortValue */
bipush 8
ishr
i2b
bastore
2: .line 42
aload 1 /* bytes */
iconst_1
iload 0 /* shortValue */
bipush 8
ishl
bipush 8
ishr
i2b
bastore
3: .line 43
aload 1 /* bytes */
areturn
end local 1 // byte[] bytes
end local 0 // int shortValue
LocalVariableTable:
Start End Slot Name Signature
0 4 0 shortValue I
1 4 1 bytes [B
MethodParameters:
Name Flags
shortValue
public static byte[] fromInt(int);
descriptor: (I)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 // int intValue
0: .line 54
iconst_4
newarray 8
astore 1 /* bytes */
start local 1 // byte[] bytes
1: .line 55
aload 1 /* bytes */
iconst_0
iload 0 /* intValue */
bipush 24
ishr
i2b
bastore
2: .line 56
aload 1 /* bytes */
iconst_1
iload 0 /* intValue */
bipush 8
ishl
bipush 24
ishr
i2b
bastore
3: .line 57
aload 1 /* bytes */
iconst_2
iload 0 /* intValue */
bipush 16
ishl
bipush 24
ishr
i2b
bastore
4: .line 58
aload 1 /* bytes */
iconst_3
iload 0 /* intValue */
bipush 24
ishl
bipush 24
ishr
i2b
bastore
5: .line 59
aload 1 /* bytes */
areturn
end local 1 // byte[] bytes
end local 0 // int intValue
LocalVariableTable:
Start End Slot Name Signature
0 6 0 intValue I
1 6 1 bytes [B
MethodParameters:
Name Flags
intValue
public static byte[] fromLong(long);
descriptor: (J)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 // long longValue
0: .line 70
bipush 8
newarray 8
astore 2 /* bytes */
start local 2 // byte[] bytes
1: .line 71
lload 0 /* longValue */
aload 2 /* bytes */
iconst_0
invokestatic org.hibernate.internal.util.BytesHelper.fromLong:(J[BI)V
2: .line 72
aload 2 /* bytes */
areturn
end local 2 // byte[] bytes
end local 0 // long longValue
LocalVariableTable:
Start End Slot Name Signature
0 3 0 longValue J
1 3 2 bytes [B
MethodParameters:
Name Flags
longValue
public static void fromLong(long, byte[], int);
descriptor: (J[BI)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 // long longValue
start local 2 // byte[] dest
start local 3 // int destPos
0: .line 85
aload 2 /* dest */
iload 3 /* destPos */
lload 0 /* longValue */
bipush 56
lshr
l2i
i2b
bastore
1: .line 86
aload 2 /* dest */
iload 3 /* destPos */
iconst_1
iadd
lload 0 /* longValue */
bipush 8
lshl
bipush 56
lshr
l2i
i2b
bastore
2: .line 87
aload 2 /* dest */
iload 3 /* destPos */
iconst_2
iadd
lload 0 /* longValue */
bipush 16
lshl
bipush 56
lshr
l2i
i2b
bastore
3: .line 88
aload 2 /* dest */
iload 3 /* destPos */
iconst_3
iadd
lload 0 /* longValue */
bipush 24
lshl
bipush 56
lshr
l2i
i2b
bastore
4: .line 89
aload 2 /* dest */
iload 3 /* destPos */
iconst_4
iadd
lload 0 /* longValue */
bipush 32
lshl
bipush 56
lshr
l2i
i2b
bastore
5: .line 90
aload 2 /* dest */
iload 3 /* destPos */
iconst_5
iadd
lload 0 /* longValue */
bipush 40
lshl
bipush 56
lshr
l2i
i2b
bastore
6: .line 91
aload 2 /* dest */
iload 3 /* destPos */
bipush 6
iadd
lload 0 /* longValue */
bipush 48
lshl
bipush 56
lshr
l2i
i2b
bastore
7: .line 92
aload 2 /* dest */
iload 3 /* destPos */
bipush 7
iadd
lload 0 /* longValue */
bipush 56
lshl
bipush 56
lshr
l2i
i2b
bastore
8: .line 93
return
end local 3 // int destPos
end local 2 // byte[] dest
end local 0 // long longValue
LocalVariableTable:
Start End Slot Name Signature
0 9 0 longValue J
0 9 2 dest [B
0 9 3 destPos I
MethodParameters:
Name Flags
longValue
dest
destPos
public static long asLong(byte[]);
descriptor: ([B)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 // byte[] bytes
0: .line 103
aload 0 /* bytes */
iconst_0
invokestatic org.hibernate.internal.util.BytesHelper.asLong:([BI)J
lreturn
end local 0 // byte[] bytes
LocalVariableTable:
Start End Slot Name Signature
0 1 0 bytes [B
MethodParameters:
Name Flags
bytes
public static long asLong(byte[], int);
descriptor: ([BI)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=2
start local 0 // byte[] bytes
start local 1 // int srcPos
0: .line 115
aload 0 /* bytes */
ifnonnull 2
1: .line 116
lconst_0
lreturn
2: .line 118
StackMap locals:
StackMap stack:
iload 1 /* srcPos */
bipush 8
iadd
istore 2 /* size */
start local 2 // int size
3: .line 119
aload 0 /* bytes */
arraylength
iload 2 /* size */
if_icmpge 5
4: .line 120
new java.lang.IllegalArgumentException
dup
ldc "Expecting 8 byte values to construct a long"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: .line 122
StackMap locals: int
StackMap stack:
lconst_0
lstore 3 /* value */
start local 3 // long value
6: .line 123
iload 1 /* srcPos */
istore 5 /* i */
start local 5 // int i
7: goto 10
8: .line 124
StackMap locals: long int
StackMap stack:
lload 3 /* value */
bipush 8
lshl
aload 0 /* bytes */
iload 5 /* i */
baload
sipush 255
iand
i2l
lor
lstore 3 /* value */
9: .line 123
iinc 5 /* i */ 1
StackMap locals:
StackMap stack:
10: iload 5 /* i */
iload 2 /* size */
if_icmplt 8
end local 5 // int i
11: .line 126
lload 3 /* value */
lreturn
end local 3 // long value
end local 2 // int size
end local 1 // int srcPos
end local 0 // byte[] bytes
LocalVariableTable:
Start End Slot Name Signature
0 12 0 bytes [B
0 12 1 srcPos I
3 12 2 size I
6 12 3 value J
7 11 5 i I
MethodParameters:
Name Flags
bytes
srcPos
public static java.lang.String toBinaryString(byte);
descriptor: (B)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 // byte value
0: .line 130
iload 0 /* value */
invokestatic java.lang.Integer.toBinaryString:(I)Ljava/lang/String;
astore 1 /* formatted */
start local 1 // java.lang.String formatted
1: .line 131
aload 1 /* formatted */
invokevirtual java.lang.String.length:()I
bipush 8
if_icmple 3
2: .line 132
aload 1 /* formatted */
aload 1 /* formatted */
invokevirtual java.lang.String.length:()I
bipush 8
isub
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1 /* formatted */
3: .line 134
StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
ldc "00000000"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 2 /* buf */
start local 2 // java.lang.StringBuilder buf
4: .line 135
aload 2 /* buf */
bipush 8
aload 1 /* formatted */
invokevirtual java.lang.String.length:()I
isub
bipush 8
aload 1 /* formatted */
invokevirtual java.lang.StringBuilder.replace:(IILjava/lang/String;)Ljava/lang/StringBuilder;
pop
5: .line 136
aload 2 /* buf */
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 // java.lang.StringBuilder buf
end local 1 // java.lang.String formatted
end local 0 // byte value
LocalVariableTable:
Start End Slot Name Signature
0 6 0 value B
1 6 1 formatted Ljava/lang/String;
4 6 2 buf Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
value
public static java.lang.String toBinaryString(int);
descriptor: (I)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 // int value
0: .line 140
iload 0 /* value */
i2l
invokestatic java.lang.Long.toBinaryString:(J)Ljava/lang/String;
astore 1 /* formatted */
start local 1 // java.lang.String formatted
1: .line 141
new java.lang.StringBuilder
dup
bipush 48
bipush 32
invokestatic org.hibernate.internal.util.StringHelper.repeat:(CI)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 2 /* buf */
start local 2 // java.lang.StringBuilder buf
2: .line 142
aload 2 /* buf */
bipush 64
aload 1 /* formatted */
invokevirtual java.lang.String.length:()I
isub
bipush 64
aload 1 /* formatted */
invokevirtual java.lang.StringBuilder.replace:(IILjava/lang/String;)Ljava/lang/StringBuilder;
pop
3: .line 143
aload 2 /* buf */
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 2 // java.lang.StringBuilder buf
end local 1 // java.lang.String formatted
end local 0 // int value
LocalVariableTable:
Start End Slot Name Signature
0 4 0 value I
1 4 1 formatted Ljava/lang/String;
2 4 2 buf Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
value
public static java.lang.String toBinaryString(long);
descriptor: (J)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 // long value
0: .line 147
lload 0 /* value */
invokestatic java.lang.Long.toBinaryString:(J)Ljava/lang/String;
astore 2 /* formatted */
start local 2 // java.lang.String formatted
1: .line 148
new java.lang.StringBuilder
dup
bipush 48
bipush 64
invokestatic org.hibernate.internal.util.StringHelper.repeat:(CI)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
astore 3 /* buf */
start local 3 // java.lang.StringBuilder buf
2: .line 149
aload 3 /* buf */
bipush 64
aload 2 /* formatted */
invokevirtual java.lang.String.length:()I
isub
bipush 64
aload 2 /* formatted */
invokevirtual java.lang.StringBuilder.replace:(IILjava/lang/String;)Ljava/lang/StringBuilder;
pop
3: .line 150
aload 3 /* buf */
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 // java.lang.StringBuilder buf
end local 2 // java.lang.String formatted
end local 0 // long value
LocalVariableTable:
Start End Slot Name Signature
0 4 0 value J
1 4 2 formatted Ljava/lang/String;
2 4 3 buf Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
value
}
SourceFile: "BytesHelper.java"