MCPcopy Create free account
hub / github.com/Youlor/unpacker / readCatchHandler

Method readCatchHandler

dexfixer/src/com/android/dex/Dex.java:540–551  ·  view source on GitHub ↗
(int offset)

Source from the content-addressed store, hash-verified

538 }
539
540 private CatchHandler readCatchHandler(int offset) {
541 int size = readSleb128();
542 int handlersCount = Math.abs(size);
543 int[] typeIndexes = new int[handlersCount];
544 int[] addresses = new int[handlersCount];
545 for (int i = 0; i < handlersCount; i++) {
546 typeIndexes[i] = readUleb128();
547 addresses[i] = readUleb128();
548 }
549 int catchAllAddress = size <= 0 ? readUleb128() : -1;
550 return new CatchHandler(typeIndexes, addresses, catchAllAddress, offset);
551 }
552
553 private ClassData readClassData() {
554 int staticFieldsSize = readUleb128();

Callers 1

readCatchHandlersMethod · 0.95

Calls 2

readSleb128Method · 0.95
readUleb128Method · 0.95

Tested by

no test coverage detected