MCPcopy Create free account
hub / github.com/csound/csound / getLEB

Function getLEB

wasm/nodejs/src/module.js:28–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27 let next = 9;
28 function getLEB() {
29 let returnValue = 0;
30 let mul = 1;
31 while (1) {
32 const byte = wasmBytes[next++];
33 returnValue += (byte & 0x7f) * mul;
34 mul *= 0x80;
35 if (!(byte & 0x80)) break;
36 }
37 return returnValue;
38 }
39 const sectionSize = getLEB();
40 // 6, size of "dylink" string = 7
41 next += 7;

Callers 1

getBinaryHeaderDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected