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

Method readUleb128

app/src/main/java/cc/ioctl/tmoe/util/dex/DexFlow.java:433–445  ·  view source on GitHub ↗
(byte[] src, int[] offset)

Source from the content-addressed store, hash-verified

431 }
432
433 public static int readUleb128(byte[] src, int[] offset) {
434 int result = 0;
435 int count = 0;
436 int cur;
437 do {
438 cur = src[offset[0]];
439 cur &= 0xff;
440 result |= (cur & 0x7f) << count * 7;
441 count++;
442 offset[0]++;
443 } while ((cur & 0x80) == 128 && count < 5);
444 return result;
445 }
446
447 public static String readString(byte[] buf, int idx) {
448 int stringIdsOff = readLe32(buf, 0x3c);

Callers 5

getDeclaredDexMethodsMethod · 0.95
guessNewInstanceTypeMethod · 0.95
readStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected