class org.bouncycastle.asn1.StreamUtil
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.bouncycastle.asn1.StreamUtil
super_class: java.lang.Object
{
private static final long MAX_MEMORY;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: invokestatic java.lang.Runtime.getRuntime:()Ljava/lang/Runtime;
invokevirtual java.lang.Runtime.maxMemory:()J
putstatic org.bouncycastle.asn1.StreamUtil.MAX_MEMORY:J
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
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/bouncycastle/asn1/StreamUtil;
static int findLimit(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)I
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
instanceof org.bouncycastle.asn1.LimitedInputStream
ifeq 2
1: aload 0
checkcast org.bouncycastle.asn1.LimitedInputStream
invokevirtual org.bouncycastle.asn1.LimitedInputStream.getRemaining:()I
ireturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof org.bouncycastle.asn1.ASN1InputStream
ifeq 4
3: aload 0
checkcast org.bouncycastle.asn1.ASN1InputStream
invokevirtual org.bouncycastle.asn1.ASN1InputStream.getLimit:()I
ireturn
4: StackMap locals:
StackMap stack:
aload 0
instanceof java.io.ByteArrayInputStream
ifeq 6
5: aload 0
checkcast java.io.ByteArrayInputStream
invokevirtual java.io.ByteArrayInputStream.available:()I
ireturn
6: StackMap locals:
StackMap stack:
aload 0
instanceof java.io.FileInputStream
ifeq 15
7: aload 0
checkcast java.io.FileInputStream
invokevirtual java.io.FileInputStream.getChannel:()Ljava/nio/channels/FileChannel;
astore 1
start local 1 8: aload 1
ifnull 9
aload 1
invokevirtual java.nio.channels.FileChannel.size:()J
goto 10
StackMap locals: java.nio.channels.FileChannel
StackMap stack:
9: ldc 2147483647
StackMap locals:
StackMap stack: long
10: lstore 2
start local 2 11: lload 2
ldc 2147483647
lcmp
ifge 15
12: lload 2
l2i
13: ireturn
end local 2 end local 1 14: StackMap locals: java.io.InputStream
StackMap stack: java.io.IOException
pop
15: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.asn1.StreamUtil.MAX_MEMORY:J
ldc 2147483647
lcmp
ifle 17
16: ldc 2147483647
ireturn
17: StackMap locals:
StackMap stack:
getstatic org.bouncycastle.asn1.StreamUtil.MAX_MEMORY:J
l2i
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 in Ljava/io/InputStream;
8 14 1 channel Ljava/nio/channels/FileChannel;
11 14 2 size J
Exception table:
from to target type
7 13 14 Class java.io.IOException
MethodParameters:
Name Flags
in
static int calculateBodyLength(int);
descriptor: (I)I
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: iconst_1
istore 1
start local 1 1: iload 0
bipush 127
if_icmple 12
2: iconst_1
istore 2
start local 2 3: iload 0
istore 3
start local 3 4: goto 6
5: StackMap locals: int int int
StackMap stack:
iinc 2 1
6: StackMap locals:
StackMap stack:
iload 3
bipush 8
iushr
dup
istore 3
ifne 5
7: iload 2
iconst_1
isub
bipush 8
imul
istore 4
start local 4 8: goto 11
9: StackMap locals: int
StackMap stack:
iinc 1 1
10: iinc 4 -8
StackMap locals:
StackMap stack:
11: iload 4
ifge 9
end local 4 end local 3 end local 2 12: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 length I
1 13 1 count I
3 12 2 size I
4 12 3 val I
8 12 4 i I
MethodParameters:
Name Flags
length
static int calculateTagLength(int);
descriptor: (I)I
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: iconst_1
istore 1
start local 1 1: iload 0
bipush 31
if_icmplt 13
2: iload 0
sipush 128
if_icmpge 5
3: iinc 1 1
4: goto 13
5: StackMap locals: int
StackMap stack:
iconst_5
newarray 8
astore 2
start local 2 6: aload 2
arraylength
istore 3
start local 3 7: aload 2
iinc 3 -1
iload 3
iload 0
bipush 127
iand
i2b
bastore
8: StackMap locals: byte[] int
StackMap stack:
iload 0
bipush 7
ishr
istore 0
9: aload 2
iinc 3 -1
iload 3
iload 0
bipush 127
iand
sipush 128
ior
i2b
bastore
10: iload 0
bipush 127
11: if_icmpgt 8
12: iload 1
aload 2
arraylength
iload 3
isub
iadd
istore 1
end local 3 end local 2 13: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 tagNo I
1 14 1 length I
6 13 2 stack [B
7 13 3 pos I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
tagNo
}
SourceFile: "StreamUtil.java"