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

Method readString

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

Source from the content-addressed store, hash-verified

445 }
446
447 public static String readString(byte[] buf, int idx) {
448 int stringIdsOff = readLe32(buf, 0x3c);
449 int strOff = readLe32(buf, stringIdsOff + 4 * idx);
450 int[] ppos = new int[1];
451 ppos[0] = strOff;
452 int len = readUleb128(buf, ppos);
453 return new String(buf, ppos[0], len);
454 }
455
456 public static String readType(byte[] buf, int idx) {
457 int typeIdsOff = readLe32(buf, 0x44);

Callers 6

getDeclaredDexMethodsMethod · 0.95
guessNewInstanceTypeMethod · 0.95
readTypeMethod · 0.95
readFieldMethod · 0.95

Calls 2

readLe32Method · 0.95
readUleb128Method · 0.95

Tested by

no test coverage detected