MCPcopy Index your code
hub / github.com/jvilk/BrowserFS / stringToUTF8

Function stringToUTF8

test/tests/emscripten/readdir_empty.js:818–820  ·  view source on GitHub ↗
(str, outPtr, maxBytesToWrite)

Source from the content-addressed store, hash-verified

816// Returns the number of bytes written, EXCLUDING the null terminator.
817
818function stringToUTF8(str, outPtr, maxBytesToWrite) {
819 return stringToUTF8Array(str, HEAPU8,outPtr, maxBytesToWrite);
820}
821Module["stringToUTF8"] = stringToUTF8;
822
823// Returns the number of bytes the given Javascript string takes if encoded as a UTF8 byte array, EXCLUDING the null terminator byte.

Callers

nothing calls this directly

Calls 1

stringToUTF8ArrayFunction · 0.70

Tested by

no test coverage detected