Android - DEX - 文件格式详解(4)

2019-03-27 17:56

result = (result & 0x7f) | ((cur & 0x7f) << 7); if (cur <= 0x7f) {

result = (result << 18) >> 18; } else {

cur = *(ptr++);

result |= (cur & 0x7f) << 14; if (cur <= 0x7f) {

result = (result << 11) >> 11; } else {

cur = *(ptr++);

result |= (cur & 0x7f) << 21; if (cur <= 0x7f) {

result = (result << 4) >> 4; } else { /*

* Note: We don't check to see if cur is out of * range here, meaning we tolerate garbage in the * high four-order bits. */

cur = *(ptr++);

result |= cur << 28; } } } }

*pStream = ptr; return result; }

附录2 字段和方法描述符 (1) Field Descriptors

The field descriptors for eight primitive types are as follows:

引用类型使用L开头,如下:

(2) Method Descriptors

方法描述符形式为括号内所有参数类型的描述符,后加上返回类型的字段描述符。V表示void方法返回类型,构造函数的返回类型也为V,名字为。例如:

(3) ShortyDescriptor A ShortyDescriptor is the short form representation of a method prototype, including return and parameter types, except that there is no distinction between various reference(class or array)types. Instead, all reference types are represented by a single 'L' character.

ShortyDescriptor Java Language Type String f(); L long f(int i, Class c); JIL String(byte[] bytes); VL


Android - DEX - 文件格式详解(4).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:政法综治责任状汇编

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: