MCPcopy Create free account
hub / github.com/sql-js/sql.js / AsciiToString

Function AsciiToString

js/sql-debug.js:716–723  ·  view source on GitHub ↗
(ptr)

Source from the content-addressed store, hash-verified

714// a copy of that string as a Javascript String object.
715
716function AsciiToString(ptr) {
717 var str = '';
718 while (1) {
719 var ch = HEAP8[((ptr++)>>0)];
720 if (!ch) return str;
721 str += String.fromCharCode(ch);
722 }
723}
724
725
726// Copies the given Javascript String object 'str' to the emscripten HEAP at address 'outPtr',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…