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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jf.dexlib2.dexbacked.DexBackedDexFile
DexBackedDexFile.IndexedSection<T>, DexBackedDexFile.NotADexFile, DexBackedDexFile.OptionalIndexedSection<T> -
Constructor Summary
ConstructorsConstructorDescriptionCDexBackedDexFile(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
Modifier and TypeMethodDescriptionprotected DexBackedMethodImplementationcreateMethodImplementation(DexBackedDexFile dexFile, DexBackedMethod method, int codeOffset) intintintintprotected 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 Details
-
CDexBackedDexFile
public CDexBackedDexFile(@Nullable Opcodes opcodes, @Nonnull byte[] buf, int offset, boolean verifyMagic) -
CDexBackedDexFile
-
CDexBackedDexFile
-
CDexBackedDexFile
-
-
Method Details
-
isCdex
public static boolean isCdex(byte[] buf, int offset) -
getVersion
protected int getVersion(byte[] buf, int offset, boolean verifyMagic) - Overrides:
getVersionin classDexBackedDexFile
-
getDefaultOpcodes
- 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
-