dcmstring_to_wasm_with_resolver

Function dcmstring_to_wasm_with_resolver 

Source
pub fn dcmstring_to_wasm_with_resolver(
    doc: &DcMstr,
    resolver: &dyn SyntaxRuleResolver,
) -> Result<Vec<u8>>
Expand description

Converts a Dc-WASM document (Dc 1927 "Begin WASM program"..Dc 1928 "End WASM program" or a standalone wasm_routine) into a standard binary .wasm module using the supplied SyntaxRuleResolver.

ยงErrors

Returns an error if the document fails strict syntax validation or contains invalid WebAssembly instructions, types, or immediate arguments.