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

Function UTF8ToString

docs/webassembly/files/apps/hello-world/hello.js:1065–1068  ·  view source on GitHub ↗
(ptr, maxBytesToRead)

Source from the content-addressed store, hash-verified

1063 * @return {string}
1064 */
1065 var UTF8ToString = (ptr, maxBytesToRead) => {
1066 assert(typeof ptr == 'number', `UTF8ToString expects a number (got ${typeof ptr})`);
1067 return ptr ? UTF8ArrayToString(HEAPU8, ptr, maxBytesToRead) : '';
1068 };
1069 var SYSCALLS = {
1070 varargs:undefined,
1071 getStr(ptr) {

Callers 1

getStrFunction · 0.85

Calls 2

assertFunction · 0.85
UTF8ArrayToStringFunction · 0.85

Tested by

no test coverage detected