MCPcopy Create free account
hub / github.com/cinit/TMoe / readField

Method readField

app/src/main/java/cc/ioctl/tmoe/util/dex/DexFlow.java:462–469  ·  view source on GitHub ↗
(byte[] buf, int idx)

Source from the content-addressed store, hash-verified

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);

Callers 2

guessNewInstanceTypeMethod · 0.95

Calls 4

readLe32Method · 0.95
readTypeMethod · 0.95
readLe16Method · 0.95
readStringMethod · 0.95

Tested by

no test coverage detected