MCPcopy
hub / github.com/Pradumnasaraf/DevOps / ptrToString

Function ptrToString

docs/webassembly/files/apps/hello-world/hello.js:932–937  ·  view source on GitHub ↗
(ptr)

Source from the content-addressed store, hash-verified

930 var noExitRuntime = Module['noExitRuntime'] || true;
931
932 var ptrToString = (ptr) => {
933 assert(typeof ptr === 'number');
934 // With CAN_ADDRESS_2GB or MEMORY64, pointers are already unsigned.
935 ptr >>>= 0;
936 return '0x' + ptr.toString(16).padStart(8, '0');
937 };
938
939
940 /**

Callers 2

checkStackCookieFunction · 0.85
UTF8ArrayToStringFunction · 0.85

Calls 1

assertFunction · 0.85

Tested by

no test coverage detected