wasm_exec_result

문제 신고 소스 보기 Nightly · 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 함수의 반환 값 또는 함수가 반환되기 전에 실행이 종료된 경우 음수 값입니다.