(byte[] buf, int idx)
| 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); |
no test coverage detected