public class org.apache.cassandra.utils.vint.VIntCoding
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.utils.vint.VIntCoding
super_class: java.lang.Object
{
protected static final io.netty.util.concurrent.FastThreadLocal<byte[]> encodingBuffer;
descriptor: Lio/netty/util/concurrent/FastThreadLocal;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
Signature: Lio/netty/util/concurrent/FastThreadLocal<[B>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.apache.cassandra.utils.vint.VIntCoding$1
dup
invokespecial org.apache.cassandra.utils.vint.VIntCoding$1.<init>:()V
putstatic org.apache.cassandra.utils.vint.VIntCoding.encodingBuffer:Lio/netty/util/concurrent/FastThreadLocal;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/utils/vint/VIntCoding;
public static long readUnsignedVInt(java.io.DataInput);
descriptor: (Ljava/io/DataInput;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
invokeinterface java.io.DataInput.readByte:()B
istore 1
start local 1 1: iload 1
iflt 3
2: iload 1
i2l
lreturn
3: StackMap locals: int
StackMap stack:
iload 1
invokestatic org.apache.cassandra.utils.vint.VIntCoding.numberOfExtraBytesToRead:(I)I
istore 2
start local 2 4: iload 1
iload 2
invokestatic org.apache.cassandra.utils.vint.VIntCoding.firstByteValueMask:(I)I
iand
i2l
lstore 3
start local 3 5: iconst_0
istore 5
start local 5 6: goto 11
7: StackMap locals: int long int
StackMap stack:
aload 0
invokeinterface java.io.DataInput.readByte:()B
istore 6
start local 6 8: lload 3
bipush 8
lshl
lstore 3
9: lload 3
iload 6
sipush 255
iand
i2l
lor
lstore 3
end local 6 10: iinc 5 1
StackMap locals:
StackMap stack:
11: iload 5
iload 2
if_icmplt 7
end local 5 12: lload 3
lreturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 input Ljava/io/DataInput;
1 13 1 firstByte I
4 13 2 size I
5 13 3 retval J
6 12 5 ii I
8 10 6 b B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
input
public static long getUnsignedVInt(java.nio.ByteBuffer, int);
descriptor: (Ljava/nio/ByteBuffer;I)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
aload 0
invokevirtual java.nio.ByteBuffer.limit:()I
invokestatic org.apache.cassandra.utils.vint.VIntCoding.getUnsignedVInt:(Ljava/nio/ByteBuffer;II)J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 input Ljava/nio/ByteBuffer;
0 1 1 readerIndex I
MethodParameters:
Name Flags
input
readerIndex
public static long getUnsignedVInt(java.nio.ByteBuffer, int, int);
descriptor: (Ljava/nio/ByteBuffer;II)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iload 2
if_icmplt 2
1: ldc -1
lreturn
2: StackMap locals:
StackMap stack:
aload 0
iload 1
iinc 1 1
invokevirtual java.nio.ByteBuffer.get:(I)B
istore 3
start local 3 3: iload 3
iflt 5
4: iload 3
i2l
lreturn
5: StackMap locals: int
StackMap stack:
iload 3
invokestatic org.apache.cassandra.utils.vint.VIntCoding.numberOfExtraBytesToRead:(I)I
istore 4
start local 4 6: iload 1
iload 4
iadd
iload 2
if_icmple 8
7: ldc -1
lreturn
8: StackMap locals: int
StackMap stack:
iload 3
iload 4
invokestatic org.apache.cassandra.utils.vint.VIntCoding.firstByteValueMask:(I)I
iand
i2l
lstore 5
start local 5 9: iconst_0
istore 7
start local 7 10: goto 15
11: StackMap locals: long int
StackMap stack:
aload 0
iload 1
iinc 1 1
invokevirtual java.nio.ByteBuffer.get:(I)B
istore 8
start local 8 12: lload 5
bipush 8
lshl
lstore 5
13: lload 5
iload 8
sipush 255
iand
i2l
lor
lstore 5
end local 8 14: iinc 7 1
StackMap locals:
StackMap stack:
15: iload 7
iload 4
if_icmplt 11
end local 7 16: lload 5
lreturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 input Ljava/nio/ByteBuffer;
0 17 1 readerIndex I
0 17 2 readerLimit I
3 17 3 firstByte I
6 17 4 size I
9 17 5 retval J
10 16 7 ii I
12 14 8 b B
MethodParameters:
Name Flags
input
readerIndex
readerLimit
public static long readVInt(java.io.DataInput);
descriptor: (Ljava/io/DataInput;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.apache.cassandra.utils.vint.VIntCoding.readUnsignedVInt:(Ljava/io/DataInput;)J
invokestatic org.apache.cassandra.utils.vint.VIntCoding.decodeZigZag64:(J)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 input Ljava/io/DataInput;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
input
public static int firstByteValueMask(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: sipush 255
iload 0
ishr
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 extraBytesToRead I
MethodParameters:
Name Flags
extraBytesToRead
public static int encodeExtraBytesToRead(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
invokestatic org.apache.cassandra.utils.vint.VIntCoding.firstByteValueMask:(I)I
iconst_m1
ixor
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 extraBytesToRead I
MethodParameters:
Name Flags
extraBytesToRead
public static int numberOfExtraBytesToRead(int);
descriptor: (I)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
iconst_m1
ixor
invokestatic java.lang.Integer.numberOfLeadingZeros:(I)I
bipush 24
isub
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 firstByte I
MethodParameters:
Name Flags
firstByte
public static void writeUnsignedVInt(long, java.io.DataOutput);
descriptor: (JLjava/io/DataOutput;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 2 0: lload 0
invokestatic org.apache.cassandra.utils.vint.VIntCoding.computeUnsignedVIntSize:(J)I
istore 3
start local 3 1: iload 3
iconst_1
if_icmpne 4
2: aload 2
lload 0
l2i
invokeinterface java.io.DataOutput.write:(I)V
3: return
4: StackMap locals: int
StackMap stack:
aload 2
lload 0
iload 3
invokestatic org.apache.cassandra.utils.vint.VIntCoding.encodeVInt:(JI)[B
iconst_0
iload 3
invokeinterface java.io.DataOutput.write:([BII)V
5: return
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 value J
0 6 2 output Ljava/io/DataOutput;
1 6 3 size I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
value
output
public static byte[] encodeVInt(long, int);
descriptor: (JI)[B
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tInline cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
RuntimeInvisibleAnnotations:
Inline()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN, location=[ARRAY_ELEMENT]
Inline()
MethodParameters:
Name Flags
value
size
public static void writeVInt(long, java.io.DataOutput);
descriptor: (JLjava/io/DataOutput;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 2 0: lload 0
invokestatic org.apache.cassandra.utils.vint.VIntCoding.encodeZigZag64:(J)J
aload 2
invokestatic org.apache.cassandra.utils.vint.VIntCoding.writeUnsignedVInt:(JLjava/io/DataOutput;)V
1: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 value J
0 2 2 output Ljava/io/DataOutput;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
value
output
public static long decodeZigZag64(long);
descriptor: (J)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: lload 0
iconst_1
lushr
lload 0
lconst_1
land
lneg
lxor
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 n J
MethodParameters:
Name Flags
n final
public static long encodeZigZag64(long);
descriptor: (J)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: lload 0
iconst_1
lshl
lload 0
bipush 63
lshr
lxor
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 n J
MethodParameters:
Name Flags
n final
public static int computeVIntSize(long);
descriptor: (J)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: lload 0
invokestatic org.apache.cassandra.utils.vint.VIntCoding.encodeZigZag64:(J)J
invokestatic org.apache.cassandra.utils.vint.VIntCoding.computeUnsignedVIntSize:(J)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 param J
MethodParameters:
Name Flags
param final
public static int computeUnsignedVIntSize(long);
descriptor: (J)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: lload 0
lconst_1
lor
invokestatic java.lang.Long.numberOfLeadingZeros:(J)I
istore 2
start local 2 1: bipush 9
iload 2
iconst_1
isub
bipush 7
idiv
isub
ireturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 value J
1 2 2 magnitude I
MethodParameters:
Name Flags
value final
}
SourceFile: "VIntCoding.java"
NestMembers:
org.apache.cassandra.utils.vint.VIntCoding$1
InnerClasses:
org.apache.cassandra.utils.vint.VIntCoding$1