(byte[] src, int[] offset)
| 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); |
no outgoing calls
no test coverage detected