Class CDexBackedDexFile

java.lang.Object
org.jf.dexlib2.dexbacked.DexBackedDexFile
org.jf.dexlib2.dexbacked.CDexBackedDexFile
All Implemented Interfaces:
DexFile
Direct Known Subclasses:
OatFile.OatCDexFile

public class CDexBackedDexFile extends DexBackedDexFile
  • Constructor Details

    • CDexBackedDexFile

      public CDexBackedDexFile(@Nullable Opcodes opcodes, @Nonnull byte[] buf, int offset, boolean verifyMagic)
    • CDexBackedDexFile

      public CDexBackedDexFile(@Nullable Opcodes opcodes, @Nonnull DexBuffer buf)
    • CDexBackedDexFile

      public CDexBackedDexFile(@Nullable Opcodes opcodes, @Nonnull byte[] buf, int offset)
    • CDexBackedDexFile

      public CDexBackedDexFile(@Nullable Opcodes opcodes, @Nonnull byte[] buf)
  • Method Details

    • isCdex

      public static boolean isCdex(byte[] buf, int offset)
    • getVersion

      protected int getVersion(byte[] buf, int offset, boolean verifyMagic)
      Overrides:
      getVersion in class DexBackedDexFile
    • getDefaultOpcodes

      protected Opcodes getDefaultOpcodes(int version)
      Overrides:
      getDefaultOpcodes in class DexBackedDexFile
    • getBaseDataOffset

      public int getBaseDataOffset()
      Overrides:
      getBaseDataOffset in class DexBackedDexFile
      Returns:
      The offset that various data offsets are relative to. This is always 0 for a dex file, but may be different for other related formats (e.g. cdex).
    • getDebugInfoOffsetsPos

      public int getDebugInfoOffsetsPos()
    • getDebugInfoOffsetsTableOffset

      public int getDebugInfoOffsetsTableOffset()
    • getDebugInfoBase

      public int getDebugInfoBase()
    • createMethodImplementation

      protected DexBackedMethodImplementation createMethodImplementation(@Nonnull DexBackedDexFile dexFile, @Nonnull DexBackedMethod method, int codeOffset)
      Overrides:
      createMethodImplementation in class DexBackedDexFile