MCPcopy
hub / github.com/thx/resvg-js / getStringFromWasm0

Function getStringFromWasm0

wasm/index.js:123–126  ·  view source on GitHub ↗
(ptr, len)

Source from the content-addressed store, hash-verified

121 cachedTextDecoder.decode();
122}
123function getStringFromWasm0(ptr, len) {
124 ptr = ptr >>> 0;
125 return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
126}
127function _assertClass(instance, klass) {
128 if (!(instance instanceof klass)) {
129 throw new Error(`expected instance of ${klass.name}`);

Callers 2

toStringMethod · 0.70
__wbg_get_importsFunction · 0.70

Calls 1

getUint8Memory0Function · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…