public class CdexHeaderItem
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEBUG_INFO_BASE |
static int |
DEBUG_INFO_OFFSETS_POS_OFFSET |
static int |
DEBUG_INFO_OFFSETS_TABLE_OFFSET |
static int |
FEATURE_FLAGS_OFFSET |
| Constructor and Description |
|---|
CdexHeaderItem() |
| Modifier and Type | Method and Description |
|---|---|
static void |
annotateCdexHeaderFields(AnnotatedBytes out,
DexBuffer buf) |
static int |
getVersion(byte[] buf,
int offset)
Gets the dex version from an odex header
|
static boolean |
isSupportedCdexVersion(int version) |
static boolean |
verifyMagic(byte[] buf,
int offset)
Verifies the magic value at the beginning of a cdex file
|
public static final int FEATURE_FLAGS_OFFSET
public static final int DEBUG_INFO_OFFSETS_POS_OFFSET
public static final int DEBUG_INFO_OFFSETS_TABLE_OFFSET
public static final int DEBUG_INFO_BASE
public static boolean verifyMagic(byte[] buf,
int offset)
buf - A byte array containing at least the first 8 bytes of a cdex fileoffset - The offset within the buffer to the beginning of the cdex headerpublic static int getVersion(byte[] buf,
int offset)
buf - A byte array containing at least the first 7 bytes of an odex fileoffset - The offset within the buffer to the beginning of the odex headerpublic static boolean isSupportedCdexVersion(int version)
public static void annotateCdexHeaderFields(@Nonnull
AnnotatedBytes out,
DexBuffer buf)