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

Function lengthBytesUTF16

js/sql-debug.js:958–960  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

956// Returns the number of bytes the given Javascript string takes if encoded as a UTF16 byte array, EXCLUDING the null terminator byte.
957
958function lengthBytesUTF16(str) {
959 return str.length*2;
960}
961
962
963function UTF32ToString(ptr) {

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…