Dex文件结构及对应的数据结构
2016-02-17 17:14
609 查看
string_ids_off字段:
typedef struct DexStringId {
u4 stringDataOff;
} DexStringId;
type_ids_off字段:
struct DexTypeId {
u4 descriptorIdx; /* index into stringIds list for type descriptor */
};
proto_ids_off字段:
struct DexProtoId{
u4 shortyIdx; /* index into stringIds forshorty
descriptor */
u4 returnTypeIdx; /* index into typeIds list for return type */
u4 parametersOff; /* file offset to type_list for parameter types */
};
field_ids_off字段:
struct DexFieldId{
u2 classIdx; /* index into typeIds list for defining class */
u2 typeIdx; /* index into typeIds for field type */
u4 nameIdx; /* index into stringIds for field name */
};
method_ids_off字段:
struct DexMethodId{
u2 classIdx; /* index into typeIds list for defining class */
u2 protoIdx; /* index into protoIds for method prototype */
u4 nameIdx; /* index into stringIds for method name */
};
class_defs_off字段:
struct DexClassDef{
u4 classIdx; /* index into typeIds for this class */
u4 accessFlags;
u4 superclassIdx; /* index into typeIds for superclass */
u4 interfacesOff; /* file offset to DexTypeList */
u4 sourceFileIdx; /* index into stringIds for source file name */
u4 annotationsOff; /* file offset to annotations_directory_item */
u4 classDataOff; /* file offset to class_data_item */
u4 staticValuesOff; /* file offset to DexEncodedArray */
};
相关文章推荐
- 数据结构图文解析之:二分查找及与其相关的几个问题解析
- 数据结构实验图论一:基于邻接矩阵的广度优先搜索遍历
- 数据结构
- 通过一个实例学会时间复杂度的计算
- 数据结构:JavaScript实现各种排序
- ArrayList的一些方法
- 开放定址散列算法
- 数据结构图文解析之:直接插入排序及其优化(二分插入排序)解析及C++实现
- MySQL索引背后的数据结构及算法原理
- redis原理-数据结构
- java实现的Trie树数据结构
- 数据结构算法
- 加速R运行的简易方法-数据结构和*pply簇
- 使用JavaScript的数组实现数据结构中的队列与堆栈
- 数据结构(陈越) 作业题 第三周
- 数据结构(陈越) 作业题 第二周
- 数据结构(陈越) 作业题 第一周
- 常用的数据结构
- Nginx源码分析 - 基础数据结构篇 - hash表结构 ngx_hash.c
- c语言实现赫夫曼树的构建以及生成赫夫曼编码(《数据结构》算法6.12)