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

Method toString

packages/next/src/compiled/@vercel/og/index.edge.js:19979–19990  ·  view source on GitHub ↗

* Output usvg-simplified SVG string * @returns {string}

()

Source from the content-addressed store, hash-verified

19977 * @returns {string}
19978 */
19979 toString() {
19980 try {
19981 const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
19982 wasm.resvg_toString(retptr, this.ptr);
19983 var r0 = getInt32Memory0()[retptr / 4 + 0];
19984 var r1 = getInt32Memory0()[retptr / 4 + 1];
19985 return getStringFromWasm0(r0, r1);
19986 } finally {
19987 wasm.__wbindgen_add_to_stack_pointer(16);
19988 wasm.__wbindgen_free(r0, r1);
19989 }
19990 }
19991 /**
19992 * Calculate a maximum bounding box of all visible elements in this SVG.
19993 *

Callers 15

index.jsFile · 0.45
_internalReadFileMethod · 0.45
emitDependencyMethod · 0.45
getPkgCfgFunction · 0.45
pregypFindFunction · 0.45
index.jsFile · 0.45
utf8FillLastFunction · 0.45
utf8TextFunction · 0.45
utf16TextFunction · 0.45
utf16EndFunction · 0.45
base64TextFunction · 0.45
base64EndFunction · 0.45

Calls 2

getInt32Memory0Function · 0.70
getStringFromWasm0Function · 0.70

Tested by

no test coverage detected