Module wasm_capabilities

Module wasm_capabilities 

Source
Expand description

Pure host capability handlers for Dc 1939 (Minimal query of system graph) and Dc 1940 (Execute pure WASM program) under the shared DcWasmSession Option B suspension ABI.

Constants§

MAX_PURE_WASM_NESTING_DEPTH
Maximum nested invocation depth permitted for Dc 1940.

Functions§

encode_capability_error_record
Encodes an error message inside a structured Dc 552 .. Dc 553 error record.
encode_dc_string_literal
Encodes chars as a typed [string] literal (Dc 260 262 264 263 <payload> 261), protecting any payload Dc 261, Dc 255, or Dc 2239 with Dc 255.
eval_pure_graph_capability_request
Evaluates a single pure host capability request (Dc 1939 system graph query or Dc 1940 pure child WASM execution) against resolver under the shared quota.
run_wasm_session_pure_with_graph_capabilities
Drives session to completion, handling only pure Dc 1939 system graph queries and pure Dc 1940 child WASM invocations under shared_quota.