public class org.jf.dexlib2.writer.io.MemoryDataStore implements org.jf.dexlib2.writer.io.DexDataStore
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jf.dexlib2.writer.io.MemoryDataStore
super_class: java.lang.Object
{
private byte[] buf;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private int size;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
invokespecial org.jf.dexlib2.writer.io.MemoryDataStore.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jf/dexlib2/writer/io/MemoryDataStore;
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.jf.dexlib2.writer.io.MemoryDataStore.size:I
2: aload 0
iload 1
newarray 8
putfield org.jf.dexlib2.writer.io.MemoryDataStore.buf:[B
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jf/dexlib2/writer/io/MemoryDataStore;
0 4 1 initialCapacity I
MethodParameters:
Name Flags
initialCapacity
public byte[] getBuffer();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jf.dexlib2.writer.io.MemoryDataStore.buf:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jf/dexlib2/writer/io/MemoryDataStore;
public int getSize();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jf.dexlib2.writer.io.MemoryDataStore.size:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jf/dexlib2/writer/io/MemoryDataStore;
public byte[] getData();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jf.dexlib2.writer.io.MemoryDataStore.buf:[B
aload 0
getfield org.jf.dexlib2.writer.io.MemoryDataStore.size:I
invokestatic java.util.Arrays.copyOf:([BI)[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jf/dexlib2/writer/io/MemoryDataStore;
public java.io.OutputStream outputAt(int);
descriptor: (I)Ljava/io/OutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifge 1
new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
new org.jf.dexlib2.writer.io.MemoryDataStore$1
dup
aload 0
iload 1
invokespecial org.jf.dexlib2.writer.io.MemoryDataStore$1.<init>:(Lorg/jf/dexlib2/writer/io/MemoryDataStore;I)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jf/dexlib2/writer/io/MemoryDataStore;
0 2 1 offset I
RuntimeVisibleAnnotations:
javax.annotation.Nonnull()
RuntimeVisibleTypeAnnotations:
METHOD_RETURN
javax.annotation.Nonnull()
MethodParameters:
Name Flags
offset final
private void growBufferIfNeeded(int);
descriptor: (I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield org.jf.dexlib2.writer.io.MemoryDataStore.size:I
if_icmple 6
1: iload 1
aload 0
getfield org.jf.dexlib2.writer.io.MemoryDataStore.buf:[B
arraylength
if_icmple 5
2: aload 0
aload 0
getfield org.jf.dexlib2.writer.io.MemoryDataStore.buf:[B
arraylength
iload 1
invokevirtual org.jf.dexlib2.writer.io.MemoryDataStore.getNewBufferSize:(II)I
istore 2
start local 2 3: iload 2
iload 1
if_icmpge 4
new java.lang.IndexOutOfBoundsException
dup
invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
athrow
4: StackMap locals: int
StackMap stack:
aload 0
aload 0
getfield org.jf.dexlib2.writer.io.MemoryDataStore.buf:[B
iload 2
invokestatic java.util.Arrays.copyOf:([BI)[B
putfield org.jf.dexlib2.writer.io.MemoryDataStore.buf:[B
end local 2 5: StackMap locals:
StackMap stack:
aload 0
iload 1
putfield org.jf.dexlib2.writer.io.MemoryDataStore.size:I
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jf/dexlib2/writer/io/MemoryDataStore;
0 7 1 minSize I
3 5 2 newSize I
MethodParameters:
Name Flags
minSize
protected int getNewBufferSize(int, int);
descriptor: (II)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 2
iload 2
iconst_2
ishr
iadd
iload 1
ldc 262144
iadd
invokestatic java.lang.Math.max:(II)I
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jf/dexlib2/writer/io/MemoryDataStore;
0 1 1 currentSize I
0 1 2 newMinSize I
MethodParameters:
Name Flags
currentSize
newMinSize
public java.io.InputStream readAt(int);
descriptor: (I)Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifge 1
new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
new org.jf.dexlib2.writer.io.MemoryDataStore$2
dup
aload 0
iload 1
invokespecial org.jf.dexlib2.writer.io.MemoryDataStore$2.<init>:(Lorg/jf/dexlib2/writer/io/MemoryDataStore;I)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jf/dexlib2/writer/io/MemoryDataStore;
0 2 1 offset I
RuntimeVisibleAnnotations:
javax.annotation.Nonnull()
RuntimeVisibleTypeAnnotations:
METHOD_RETURN
javax.annotation.Nonnull()
MethodParameters:
Name Flags
offset final
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jf/dexlib2/writer/io/MemoryDataStore;
Exceptions:
throws java.io.IOException
}
SourceFile: "MemoryDataStore.java"
NestMembers:
org.jf.dexlib2.writer.io.MemoryDataStore$1 org.jf.dexlib2.writer.io.MemoryDataStore$2
InnerClasses:
org.jf.dexlib2.writer.io.MemoryDataStore$1
org.jf.dexlib2.writer.io.MemoryDataStore$2