MCPcopy Index your code
hub / github.com/sql-js/sql.js / stringToAscii

Function stringToAscii

js/sql-debug.js:729–731  ·  view source on GitHub ↗
(str, outPtr)

Source from the content-addressed store, hash-verified

727// null-terminated and encoded in ASCII form. The copy will require at most str.length+1 bytes of space in the HEAP.
728
729function stringToAscii(str, outPtr) {
730 return writeAsciiToMemory(str, outPtr, false);
731}
732
733
734// Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the given array that contains uint8 values, returns

Callers

nothing calls this directly

Calls 1

writeAsciiToMemoryFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…