MCPcopy Create free account
hub / github.com/apitable/apitable / json0_transform

Method json0_transform

packages/databus-wasm-web/databus_wasm.js:468–488  ·  view source on GitHub ↗

* @param {string} _op * @param {string} _other_op * @param {string} _op_type * @returns {any}

(_op, _other_op, _op_type)

Source from the content-addressed store, hash-verified

466 * @returns {any}
467 */
468 json0_transform(_op, _other_op, _op_type) {
469 try {
470 const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
471 const ptr0 = passStringToWasm0(_op, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
472 const len0 = WASM_VECTOR_LEN;
473 const ptr1 = passStringToWasm0(_other_op, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
474 const len1 = WASM_VECTOR_LEN;
475 const ptr2 = passStringToWasm0(_op_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
476 const len2 = WASM_VECTOR_LEN;
477 wasm.databusbridge_json0_transform(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
478 var r0 = getInt32Memory0()[retptr / 4 + 0];
479 var r1 = getInt32Memory0()[retptr / 4 + 1];
480 var r2 = getInt32Memory0()[retptr / 4 + 2];
481 if (r2) {
482 throw takeObject(r1);
483 }
484 return takeObject(r0);
485 } finally {
486 wasm.__wbindgen_add_to_stack_pointer(16);
487 }
488 }
489 /**
490 * @param {string} left_op
491 * @param {string} right_op

Callers

nothing calls this directly

Calls 3

passStringToWasm0Function · 0.70
getInt32Memory0Function · 0.70
takeObjectFunction · 0.70

Tested by

no test coverage detected