wasm_exec_result
报告问题open_in_new
查看源代码open_in_new
每夜 build
·
8.2
·
8.1
·
8.0
·
7.6
·
7.5
使用 repository_ctx.execute_wasm()
执行 WebAssembly 函数的结果。它包含函数的返回值和输出缓冲区。
如果执行在函数返回之前失败,则返回代码将为负数,并且 error_message
字段将被设置。
成员
error_message
string wasm_exec_result.error_message
如果在函数返回之前执行失败,则包含错误消息。
output
string wasm_exec_result.output
WebAssembly 函数返回的输出缓冲区的内容。
return_code
long wasm_exec_result.return_code
WebAssembly 函数的返回值,如果在函数返回之前执行已终止,则返回负值。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-06-11。
[null,null,["最后更新时间 (UTC):2025-06-11。"],[],[]]