MCPcopy
hub / github.com/vercel/next.js / getStringFromWasm0

Function getStringFromWasm0

packages/next/src/compiled/@vercel/og/index.node.js:20770–20772  ·  view source on GitHub ↗
(ptr, len)

Source from the content-addressed store, hash-verified

20768var cachedTextDecoder = new TextDecoder("utf-8", { ignoreBOM: true, fatal: true });
20769cachedTextDecoder.decode();
20770function getStringFromWasm0(ptr, len) {
20771 return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
20772}
20773function _assertClass(instance, klass) {
20774 if (!(instance instanceof klass)) {
20775 throw new Error(`expected instance of ${klass.name}`);

Callers 2

toStringMethod · 0.70
getImportsFunction · 0.70

Calls 2

decodeMethod · 0.80
getUint8Memory0Function · 0.70

Tested by

no test coverage detected