public class com.fasterxml.jackson.dataformat.protobuf.ProtobufUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.fasterxml.jackson.dataformat.protobuf.ProtobufUtil
super_class: java.lang.Object
{
public static final int SECONDARY_BUFFER_LENGTH;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 64000
public static final int[] sUtf8UnitLengths;
descriptor: [I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=3, args_size=0
0: .line 9
sipush 256
newarray 10
astore 0 /* table */
start local 0 // int[] table
1: .line 10
sipush 128
istore 1 /* c */
start local 1 // int c
2: goto 15
3: .line 14
StackMap locals: int[] int
StackMap stack:
iload 1 /* c */
sipush 224
iand
sipush 192
if_icmpne 6
4: .line 15
iconst_1
istore 2 /* code */
start local 2 // int code
5: .line 16
goto 13
end local 2 // int code
StackMap locals:
StackMap stack:
6: iload 1 /* c */
sipush 240
iand
sipush 224
if_icmpne 9
7: .line 17
iconst_2
istore 2 /* code */
start local 2 // int code
8: .line 18
goto 13
end local 2 // int code
StackMap locals:
StackMap stack:
9: iload 1 /* c */
sipush 248
iand
sipush 240
if_icmpne 12
10: .line 20
iconst_3
istore 2 /* code */
start local 2 // int code
11: .line 21
goto 13
end local 2 // int code
12: .line 23
StackMap locals:
StackMap stack:
iconst_m1
istore 2 /* code */
start local 2 // int code
13: .line 25
StackMap locals: int
StackMap stack:
aload 0 /* table */
iload 1 /* c */
iload 2 /* code */
iastore
end local 2 // int code
14: .line 10
iinc 1 /* c */ 1
StackMap locals:
StackMap stack:
15: iload 1 /* c */
sipush 256
if_icmplt 3
end local 1 // int c
16: .line 27
aload 0 /* table */
putstatic com.fasterxml.jackson.dataformat.protobuf.ProtobufUtil.sUtf8UnitLengths:[I
end local 0 // int[] table
17: .line 28
return
LocalVariableTable:
Start End Slot Name Signature
1 17 0 table [I
2 16 1 c I
5 6 2 code I
8 9 2 code I
11 12 2 code I
13 14 2 code I
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // com.fasterxml.jackson.dataformat.protobuf.ProtobufUtil this
0: .line 3
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // com.fasterxml.jackson.dataformat.protobuf.ProtobufUtil this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/fasterxml/jackson/dataformat/protobuf/ProtobufUtil;
public static byte[] allocSecondary(byte[]);
descriptor: ([B)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 // byte[] curr
0: .line 36
ldc 64000
newarray 8
areturn
end local 0 // byte[] curr
LocalVariableTable:
Start End Slot Name Signature
0 1 0 curr [B
MethodParameters:
Name Flags
curr
public static int lengthLength(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 // int len
0: .line 41
iload 0 /* len */
bipush 127
if_icmpgt 2
1: .line 43
iconst_1
ireturn
2: .line 45
StackMap locals:
StackMap stack:
iload 0 /* len */
sipush 16383
if_icmpgt 4
3: .line 46
iconst_2
ireturn
4: .line 48
StackMap locals:
StackMap stack:
iload 0 /* len */
ldc 2097151
if_icmpgt 6
5: .line 49
iconst_3
ireturn
6: .line 51
StackMap locals:
StackMap stack:
iload 0 /* len */
ldc 2097151
if_icmpgt 8
7: .line 52
iconst_3
ireturn
8: .line 54
StackMap locals:
StackMap stack:
iload 0 /* len */
ldc 268435455
if_icmpgt 10
9: .line 55
iconst_4
ireturn
10: .line 57
StackMap locals:
StackMap stack:
iconst_5
ireturn
end local 0 // int len
LocalVariableTable:
Start End Slot Name Signature
0 11 0 len I
MethodParameters:
Name Flags
len
public static int appendLengthLength(int, byte[], int);
descriptor: (I[BI)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 // int len
start local 1 // byte[] buffer
start local 2 // int ptr
0: .line 66
iload 0 /* len */
bipush 127
if_icmpgt 3
1: .line 68
aload 1 /* buffer */
iload 2 /* ptr */
iinc 2 /* ptr */ 1
iload 0 /* len */
i2b
bastore
2: .line 69
iload 2 /* ptr */
ireturn
3: .line 73
StackMap locals:
StackMap stack:
aload 1 /* buffer */
iload 2 /* ptr */
iinc 2 /* ptr */ 1
sipush 128
iload 0 /* len */
bipush 127
iand
iadd
i2b
bastore
4: .line 74
iload 0 /* len */
bipush 7
ishr
istore 0 /* len */
5: .line 75
iload 0 /* len */
bipush 127
6: .line 72
if_icmpgt 3
7: .line 76
aload 1 /* buffer */
iload 2 /* ptr */
iinc 2 /* ptr */ 1
iload 0 /* len */
i2b
bastore
8: .line 77
iload 2 /* ptr */
ireturn
end local 2 // int ptr
end local 1 // byte[] buffer
end local 0 // int len
LocalVariableTable:
Start End Slot Name Signature
0 9 0 len I
0 9 1 buffer [B
0 9 2 ptr I
MethodParameters:
Name Flags
len
buffer
ptr
public static byte[] lengthAsBytes(int);
descriptor: (I)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 // int len
0: .line 82
iload 0 /* len */
invokestatic com.fasterxml.jackson.dataformat.protobuf.ProtobufUtil.lengthLength:(I)I
istore 1 /* bytes */
start local 1 // int bytes
1: .line 83
iload 1 /* bytes */
newarray 8
astore 2 /* result */
start local 2 // byte[] result
2: .line 84
iload 1 /* bytes */
iconst_1
isub
istore 3 /* last */
start local 3 // int last
3: .line 86
iconst_0
istore 4 /* i */
start local 4 // int i
4: goto 8
5: .line 87
StackMap locals: int int byte[] int int
StackMap stack:
aload 2 /* result */
iload 4 /* i */
sipush 128
iload 0 /* len */
bipush 127
iand
iadd
i2b
bastore
6: .line 88
iload 0 /* len */
bipush 7
ishr
istore 0 /* len */
7: .line 86
iinc 4 /* i */ 1
StackMap locals:
StackMap stack:
8: iload 4 /* i */
iload 3 /* last */
if_icmplt 5
end local 4 // int i
9: .line 90
aload 2 /* result */
iload 3 /* last */
iload 0 /* len */
i2b
bastore
10: .line 91
aload 2 /* result */
areturn
end local 3 // int last
end local 2 // byte[] result
end local 1 // int bytes
end local 0 // int len
LocalVariableTable:
Start End Slot Name Signature
0 11 0 len I
1 11 1 bytes I
2 11 2 result [B
3 11 3 last I
4 9 4 i I
MethodParameters:
Name Flags
len
public static int zigzagEncode(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 // int input
0: .line 95
iload 0 /* input */
iconst_1
ishl
iload 0 /* input */
bipush 31
ishr
ixor
ireturn
end local 0 // int input
LocalVariableTable:
Start End Slot Name Signature
0 1 0 input I
MethodParameters:
Name Flags
input
public static int zigzagDecode(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 // int encoded
0: .line 99
iload 0 /* encoded */
iconst_1
iushr
iload 0 /* encoded */
iconst_1
iand
ineg
ixor
ireturn
end local 0 // int encoded
LocalVariableTable:
Start End Slot Name Signature
0 1 0 encoded I
MethodParameters:
Name Flags
encoded
public static long zigzagEncode(long);
descriptor: (J)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 // long input
0: .line 103
lload 0 /* input */
iconst_1
lshl
lload 0 /* input */
bipush 63
lshr
lxor
lreturn
end local 0 // long input
LocalVariableTable:
Start End Slot Name Signature
0 1 0 input J
MethodParameters:
Name Flags
input
public static long zigzagDecode(long);
descriptor: (J)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 // long encoded
0: .line 107
lload 0 /* encoded */
iconst_1
lushr
lload 0 /* encoded */
lconst_1
land
lneg
lxor
lreturn
end local 0 // long encoded
LocalVariableTable:
Start End Slot Name Signature
0 1 0 encoded J
MethodParameters:
Name Flags
encoded
}
SourceFile: "ProtobufUtil.java"