Package org.jf.dexlib2.dexbacked
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.jf.dexlib2.dexbacked.DexBackedDexFile
DexBackedDexFile.IndexedSection<T>, DexBackedDexFile.NotADexFile, DexBackedDexFile.OptionalIndexedSection<T>
-
-
Constructor Summary
Constructors Constructor Description CDexBackedDexFile(Opcodes opcodes, byte[] buf)
CDexBackedDexFile(Opcodes opcodes, byte[] buf, int offset)
CDexBackedDexFile(Opcodes opcodes, byte[] buf, int offset, boolean verifyMagic)
CDexBackedDexFile(Opcodes opcodes, DexBuffer buf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DexBackedMethodImplementation
createMethodImplementation(DexBackedDexFile dexFile, DexBackedMethod method, int codeOffset)
int
getBaseDataOffset()
int
getDebugInfoBase()
int
getDebugInfoOffsetsPos()
int
getDebugInfoOffsetsTableOffset()
protected Opcodes
getDefaultOpcodes(int version)
protected int
getVersion(byte[] buf, int offset, boolean verifyMagic)
static boolean
isCdex(byte[] buf, int offset)
-
Methods inherited from class org.jf.dexlib2.dexbacked.DexBackedDexFile
fromInputStream, getBuffer, getCallSiteSection, getClasses, getClassSection, getDataBuffer, getFieldSection, getMapItemForSection, getMapItems, getMethodHandleSection, getMethodSection, getOpcodes, getProtoSection, getReferences, getStringReferences, getStringSection, getTypeReferences, getTypeSection, supportsOptimizedOpcodes
-
-
-
-
Constructor Detail
-
CDexBackedDexFile
public CDexBackedDexFile(@Nullable Opcodes opcodes, @Nonnull byte[] buf, int offset, boolean verifyMagic)
-
CDexBackedDexFile
public CDexBackedDexFile(@Nullable Opcodes opcodes, @Nonnull byte[] buf, int offset)
-
CDexBackedDexFile
public CDexBackedDexFile(@Nullable Opcodes opcodes, @Nonnull byte[] buf)
-
-
Method Detail
-
isCdex
public static boolean isCdex(byte[] buf, int offset)
-
getVersion
protected int getVersion(byte[] buf, int offset, boolean verifyMagic)
- Overrides:
getVersion
in classDexBackedDexFile
-
getDefaultOpcodes
protected Opcodes getDefaultOpcodes(int version)
- Overrides:
getDefaultOpcodes
in classDexBackedDexFile
-
getBaseDataOffset
public int getBaseDataOffset()
- Overrides:
getBaseDataOffset
in classDexBackedDexFile
- 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 classDexBackedDexFile
-
-