(wasm, pos)
| 117 | |
| 118 | |
| 119 | def read_var_uint(wasm, pos): |
| 120 | n = 0 |
| 121 | shift = 0 |
| 122 | b = ord(wasm[pos:pos + 1]) |
| 123 | pos += 1 |
| 124 | while b >= 128: |
| 125 | n |= ((b - 128) << shift) |
| 126 | b = ord(wasm[pos:pos + 1]) |
| 127 | pos += 1 |
| 128 | shift += 7 |
| 129 | return n + (b << shift), pos |
| 130 | |
| 131 | |
| 132 | def strip_debug_sections(wasm): |
no outgoing calls
no test coverage detected