Class MemoryDataStore

java.lang.Object
org.jf.dexlib2.writer.io.MemoryDataStore
All Implemented Interfaces:
DexDataStore

public class MemoryDataStore extends Object implements DexDataStore
  • Field Details

    • buf

      private byte[] buf
    • size

      private int size
  • Constructor Details

    • MemoryDataStore

      public MemoryDataStore()
    • MemoryDataStore

      public MemoryDataStore(int initialCapacity)
  • Method Details

    • getBuffer

      public byte[] getBuffer()
    • getSize

      public int getSize()
    • getData

      public byte[] getData()
    • outputAt

      @Nonnull public OutputStream outputAt(int offset)
      Specified by:
      outputAt in interface DexDataStore
    • growBufferIfNeeded

      private void growBufferIfNeeded(int minSize)
    • getNewBufferSize

      protected int getNewBufferSize(int currentSize, int newMinSize)
    • readAt

      @Nonnull public InputStream readAt(int offset)
      Specified by:
      readAt in interface DexDataStore
    • close

      public void close() throws IOException
      Specified by:
      close in interface DexDataStore
      Throws:
      IOException