public class org.bson.io.Bits
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bson.io.Bits
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // org.bson.io.Bits this
0: .line 28
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
return
end local 0 // org.bson.io.Bits this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bson/io/Bits;
public static void readFully(java.io.InputStream, byte[]);
descriptor: (Ljava/io/InputStream;[B)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 // java.io.InputStream inputStream
start local 1 // byte[] buffer
0: .line 40
aload 0 /* inputStream */
aload 1 /* buffer */
aload 1 /* buffer */
arraylength
invokestatic org.bson.io.Bits.readFully:(Ljava/io/InputStream;[BI)V
1: .line 41
return
end local 1 // byte[] buffer
end local 0 // java.io.InputStream inputStream
LocalVariableTable:
Start End Slot Name Signature
0 2 0 inputStream Ljava/io/InputStream;
0 2 1 buffer [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inputStream final
buffer final
public static void readFully(java.io.InputStream, byte[], int);
descriptor: (Ljava/io/InputStream;[BI)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 // java.io.InputStream inputStream
start local 1 // byte[] buffer
start local 2 // int length
0: .line 54
aload 0 /* inputStream */
aload 1 /* buffer */
iconst_0
iload 2 /* length */
invokestatic org.bson.io.Bits.readFully:(Ljava/io/InputStream;[BII)V
1: .line 55
return
end local 2 // int length
end local 1 // byte[] buffer
end local 0 // java.io.InputStream inputStream
LocalVariableTable:
Start End Slot Name Signature
0 2 0 inputStream Ljava/io/InputStream;
0 2 1 buffer [B
0 2 2 length I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inputStream final
buffer final
length final
public static void readFully(java.io.InputStream, byte[], int, int);
descriptor: (Ljava/io/InputStream;[BII)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=7, args_size=4
start local 0 // java.io.InputStream inputStream
start local 1 // byte[] buffer
start local 2 // int offset
start local 3 // int length
0: .line 69
aload 1 /* buffer */
arraylength
iload 3 /* length */
iload 2 /* offset */
iadd
if_icmpge 2
1: .line 70
new java.lang.IllegalArgumentException
dup
ldc "Buffer is too small"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: .line 73
StackMap locals:
StackMap stack:
iload 2 /* offset */
istore 4 /* arrayOffset */
start local 4 // int arrayOffset
3: .line 74
iload 3 /* length */
istore 5 /* bytesToRead */
start local 5 // int bytesToRead
4: .line 75
goto 10
5: .line 76
StackMap locals: int int
StackMap stack:
aload 0 /* inputStream */
aload 1 /* buffer */
iload 4 /* arrayOffset */
iload 5 /* bytesToRead */
invokevirtual java.io.InputStream.read:([BII)I
istore 6 /* bytesRead */
start local 6 // int bytesRead
6: .line 77
iload 6 /* bytesRead */
ifge 8
7: .line 78
new java.io.EOFException
dup
invokespecial java.io.EOFException.<init>:()V
athrow
8: .line 80
StackMap locals: int
StackMap stack:
iload 5 /* bytesToRead */
iload 6 /* bytesRead */
isub
istore 5 /* bytesToRead */
9: .line 81
iload 4 /* arrayOffset */
iload 6 /* bytesRead */
iadd
istore 4 /* arrayOffset */
end local 6 // int bytesRead
10: .line 75
StackMap locals:
StackMap stack:
iload 5 /* bytesToRead */
ifgt 5
11: .line 83
return
end local 5 // int bytesToRead
end local 4 // int arrayOffset
end local 3 // int length
end local 2 // int offset
end local 1 // byte[] buffer
end local 0 // java.io.InputStream inputStream
LocalVariableTable:
Start End Slot Name Signature
0 12 0 inputStream Ljava/io/InputStream;
0 12 1 buffer [B
0 12 2 offset I
0 12 3 length I
3 12 4 arrayOffset I
4 12 5 bytesToRead I
6 10 6 bytesRead I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inputStream final
buffer final
offset final
length final
public static int readInt(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 // java.io.InputStream inputStream
0: .line 93
aload 0 /* inputStream */
iconst_4
newarray 8
invokestatic org.bson.io.Bits.readInt:(Ljava/io/InputStream;[B)I
ireturn
end local 0 // java.io.InputStream inputStream
LocalVariableTable:
Start End Slot Name Signature
0 1 0 inputStream Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inputStream final
public static int readInt(java.io.InputStream, byte[]);
descriptor: (Ljava/io/InputStream;[B)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 // java.io.InputStream inputStream
start local 1 // byte[] buffer
0: .line 105
aload 0 /* inputStream */
aload 1 /* buffer */
iconst_4
invokestatic org.bson.io.Bits.readFully:(Ljava/io/InputStream;[BI)V
1: .line 106
aload 1 /* buffer */
invokestatic org.bson.io.Bits.readInt:([B)I
ireturn
end local 1 // byte[] buffer
end local 0 // java.io.InputStream inputStream
LocalVariableTable:
Start End Slot Name Signature
0 2 0 inputStream Ljava/io/InputStream;
0 2 1 buffer [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inputStream final
buffer final
public static int readInt(byte[]);
descriptor: ([B)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 // byte[] buffer
0: .line 117
aload 0 /* buffer */
iconst_0
invokestatic org.bson.io.Bits.readInt:([BI)I
ireturn
end local 0 // byte[] buffer
LocalVariableTable:
Start End Slot Name Signature
0 1 0 buffer [B
MethodParameters:
Name Flags
buffer final
public static int readInt(byte[], int);
descriptor: ([BI)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 // byte[] buffer
start local 1 // int offset
0: .line 128
iconst_0
istore 2 /* x */
start local 2 // int x
1: .line 129
iload 2 /* x */
sipush 255
aload 0 /* buffer */
iload 1 /* offset */
iconst_0
iadd
baload
iand
iconst_0
ishl
ior
istore 2 /* x */
2: .line 130
iload 2 /* x */
sipush 255
aload 0 /* buffer */
iload 1 /* offset */
iconst_1
iadd
baload
iand
bipush 8
ishl
ior
istore 2 /* x */
3: .line 131
iload 2 /* x */
sipush 255
aload 0 /* buffer */
iload 1 /* offset */
iconst_2
iadd
baload
iand
bipush 16
ishl
ior
istore 2 /* x */
4: .line 132
iload 2 /* x */
sipush 255
aload 0 /* buffer */
iload 1 /* offset */
iconst_3
iadd
baload
iand
bipush 24
ishl
ior
istore 2 /* x */
5: .line 133
iload 2 /* x */
ireturn
end local 2 // int x
end local 1 // int offset
end local 0 // byte[] buffer
LocalVariableTable:
Start End Slot Name Signature
0 6 0 buffer [B
0 6 1 offset I
1 6 2 x I
MethodParameters:
Name Flags
buffer final
offset final
public static int readIntBE(byte[], int);
descriptor: ([BI)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 // byte[] buffer
start local 1 // int offset
0: .line 144
iconst_0
istore 2 /* x */
start local 2 // int x
1: .line 145
iload 2 /* x */
sipush 255
aload 0 /* buffer */
iload 1 /* offset */
iconst_0
iadd
baload
iand
bipush 24
ishl
ior
istore 2 /* x */
2: .line 146
iload 2 /* x */
sipush 255
aload 0 /* buffer */
iload 1 /* offset */
iconst_1
iadd
baload
iand
bipush 16
ishl
ior
istore 2 /* x */
3: .line 147
iload 2 /* x */
sipush 255
aload 0 /* buffer */
iload 1 /* offset */
iconst_2
iadd
baload
iand
bipush 8
ishl
ior
istore 2 /* x */
4: .line 148
iload 2 /* x */
sipush 255
aload 0 /* buffer */
iload 1 /* offset */
iconst_3
iadd
baload
iand
iconst_0
ishl
ior
istore 2 /* x */
5: .line 149
iload 2 /* x */
ireturn
end local 2 // int x
end local 1 // int offset
end local 0 // byte[] buffer
LocalVariableTable:
Start End Slot Name Signature
0 6 0 buffer [B
0 6 1 offset I
1 6 2 x I
MethodParameters:
Name Flags
buffer final
offset final
public static long readLong(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 // java.io.InputStream inputStream
0: .line 160
aload 0 /* inputStream */
bipush 8
newarray 8
invokestatic org.bson.io.Bits.readLong:(Ljava/io/InputStream;[B)J
lreturn
end local 0 // java.io.InputStream inputStream
LocalVariableTable:
Start End Slot Name Signature
0 1 0 inputStream Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inputStream final
public static long readLong(java.io.InputStream, byte[]);
descriptor: (Ljava/io/InputStream;[B)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 // java.io.InputStream inputStream
start local 1 // byte[] buffer
0: .line 172
aload 0 /* inputStream */
aload 1 /* buffer */
bipush 8
invokestatic org.bson.io.Bits.readFully:(Ljava/io/InputStream;[BI)V
1: .line 173
aload 1 /* buffer */
invokestatic org.bson.io.Bits.readLong:([B)J
lreturn
end local 1 // byte[] buffer
end local 0 // java.io.InputStream inputStream
LocalVariableTable:
Start End Slot Name Signature
0 2 0 inputStream Ljava/io/InputStream;
0 2 1 buffer [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
inputStream final
buffer final
public static long readLong(byte[]);
descriptor: ([B)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 // byte[] buffer
0: .line 184
aload 0 /* buffer */
iconst_0
invokestatic org.bson.io.Bits.readLong:([BI)J
lreturn
end local 0 // byte[] buffer
LocalVariableTable:
Start End Slot Name Signature
0 1 0 buffer [B
MethodParameters:
Name Flags
buffer final
public static long readLong(byte[], int);
descriptor: ([BI)J
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=4, args_size=2
start local 0 // byte[] buffer
start local 1 // int offset
0: .line 195
lconst_0
lstore 2 /* x */
start local 2 // long x
1: .line 196
lload 2 /* x */
ldc 255
aload 0 /* buffer */
iload 1 /* offset */
iconst_0
iadd
baload
i2l
land
iconst_0
lshl
lor
lstore 2 /* x */
2: .line 197
lload 2 /* x */
ldc 255
aload 0 /* buffer */
iload 1 /* offset */
iconst_1
iadd
baload
i2l
land
bipush 8
lshl
lor
lstore 2 /* x */
3: .line 198
lload 2 /* x */
ldc 255
aload 0 /* buffer */
iload 1 /* offset */
iconst_2
iadd
baload
i2l
land
bipush 16
lshl
lor
lstore 2 /* x */
4: .line 199
lload 2 /* x */
ldc 255
aload 0 /* buffer */
iload 1 /* offset */
iconst_3
iadd
baload
i2l
land
bipush 24
lshl
lor
lstore 2 /* x */
5: .line 200
lload 2 /* x */
ldc 255
aload 0 /* buffer */
iload 1 /* offset */
iconst_4
iadd
baload
i2l
land
bipush 32
lshl
lor
lstore 2 /* x */
6: .line 201
lload 2 /* x */
ldc 255
aload 0 /* buffer */
iload 1 /* offset */
iconst_5
iadd
baload
i2l
land
bipush 40
lshl
lor
lstore 2 /* x */
7: .line 202
lload 2 /* x */
ldc 255
aload 0 /* buffer */
iload 1 /* offset */
bipush 6
iadd
baload
i2l
land
bipush 48
lshl
lor
lstore 2 /* x */
8: .line 203
lload 2 /* x */
ldc 255
aload 0 /* buffer */
iload 1 /* offset */
bipush 7
iadd
baload
i2l
land
bipush 56
lshl
lor
lstore 2 /* x */
9: .line 204
lload 2 /* x */
lreturn
end local 2 // long x
end local 1 // int offset
end local 0 // byte[] buffer
LocalVariableTable:
Start End Slot Name Signature
0 10 0 buffer [B
0 10 1 offset I
1 10 2 x J
MethodParameters:
Name Flags
buffer final
offset final
}
SourceFile: "Bits.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()