MCPcopy Create free account
hub / github.com/GoogleChrome/samples / UTF8ToString

Function UTF8ToString

sqlite-wasm-cos/sqlite3-node.mjs:3066–3070  ·  view source on GitHub ↗
(ptr, maxBytesToRead, ignoreNul)

Source from the content-addressed store, hash-verified

3064 * @return {string}
3065 */
3066 var UTF8ToString = (ptr, maxBytesToRead, ignoreNul) => {
3067 if (!ptr) return '';
3068 var end = findStringEnd(HEAPU8, ptr, maxBytesToRead, ignoreNul);
3069 return UTF8Decoder.decode(HEAPU8.subarray(ptr, end));
3070 };
3071 var SYSCALLS = {
3072 calculateAt(dirfd, path, allowEmpty) {
3073 if (PATH.isAbs(path)) {

Callers 1

getStrFunction · 0.70

Calls 1

findStringEndFunction · 0.70

Tested by

no test coverage detected