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

Method render

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

* Renders an SVG in Wasm * @returns {RenderedImage}

()

Source from the content-addressed store, hash-verified

19958 * @returns {RenderedImage}
19959 */
19960 render() {
19961 try {
19962 const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
19963 wasm.resvg_render(retptr, this.ptr);
19964 var r0 = getInt32Memory0()[retptr / 4 + 0];
19965 var r1 = getInt32Memory0()[retptr / 4 + 1];
19966 var r2 = getInt32Memory0()[retptr / 4 + 2];
19967 if (r2) {
19968 throw takeObject(r1);
19969 }
19970 return RenderedImage.__wrap(r0);
19971 } finally {
19972 wasm.__wbindgen_add_to_stack_pointer(16);
19973 }
19974 }
19975 /**
19976 * Output usvg-simplified SVG string
19977 * @returns {string}

Callers

nothing calls this directly

Calls 3

getInt32Memory0Function · 0.70
takeObjectFunction · 0.70
__wrapMethod · 0.45

Tested by

no test coverage detected