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 DexBackedMethodImplementationcreateMethodImplementation(DexBackedDexFile dexFile, DexBackedMethod method, int codeOffset)intgetBaseDataOffset()intgetDebugInfoBase()intgetDebugInfoOffsetsPos()intgetDebugInfoOffsetsTableOffset()protected OpcodesgetDefaultOpcodes(int version)protected intgetVersion(byte[] buf, int offset, boolean verifyMagic)static booleanisCdex(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:
getVersionin classDexBackedDexFile
-
getDefaultOpcodes
protected Opcodes getDefaultOpcodes(int version)
- Overrides:
getDefaultOpcodesin classDexBackedDexFile
-
getBaseDataOffset
public int getBaseDataOffset()
- Overrides:
getBaseDataOffsetin 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:
createMethodImplementationin classDexBackedDexFile
-
-