(byte[] buf, int idx)
| 460 | } |
| 461 | |
| 462 | public static DexFieldDescriptor readField(byte[] buf, int idx) { |
| 463 | int fieldIdsOff = readLe32(buf, 0x54); |
| 464 | int p = fieldIdsOff + 8 * idx; |
| 465 | String clz = readType(buf, readLe16(buf, p)); |
| 466 | String type = readType(buf, readLe16(buf, p + 2)); |
| 467 | String name = readString(buf, readLe32(buf, p + 4)); |
| 468 | return new DexFieldDescriptor(clz, name, type); |
| 469 | } |
| 470 | |
| 471 | public static String readProto(byte[] buf, int idx) { |
| 472 | int protoIdsOff = readLe32(buf, 0x4c); |
no test coverage detected