MCPcopy Create free account
hub / github.com/WebAssembly/wabt / LebLoop

Function LebLoop

test/gen-wasm.py:371–379  ·  view source on GitHub ↗
(data, v, cond)

Source from the content-addressed store, hash-verified

369
370
371def LebLoop(data, v, cond):
372 while True:
373 byte = v & 0x7f
374 v >>= 7
375 if cond(v, byte):
376 data.append(byte)
377 break
378 else:
379 data.append(byte | 0x80)
380
381
382def WriteUnsignedLeb(data, v, max_size):

Callers 2

WriteUnsignedLebFunction · 0.85
WriteSignedLebFunction · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected