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

Function stringToUTF8

js/sql-debug.js:863–865  ·  view source on GitHub ↗
(str, outPtr, maxBytesToWrite)

Source from the content-addressed store, hash-verified

861// Returns the number of bytes written, EXCLUDING the null terminator.
862
863function stringToUTF8(str, outPtr, maxBytesToWrite) {
864 return stringToUTF8Array(str, HEAPU8,outPtr, maxBytesToWrite);
865}
866
867
868// Returns the number of bytes the given Javascript string takes if encoded as a UTF8 byte array, EXCLUDING the null terminator byte.

Callers 3

sql-debug.jsFile · 0.70
writeStringToMemoryFunction · 0.70
___syscall183Function · 0.70

Calls 1

stringToUTF8ArrayFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…