MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / encode_uint_var

Function encode_uint_var

tools/wasm-sourcemap.py:153–159  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

151
152
153def encode_uint_var(n):
154 result = bytearray()
155 while n > 127:
156 result.append(128 | (n & 127))
157 n >>= 7
158 result.append(n)
159 return bytes(result)
160
161
162def append_source_mapping(wasm, url):

Callers 1

append_source_mappingFunction · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected