[−][src]Function wabt::wasm2wat
pub fn wasm2wat<S: AsRef<[u8]>>(wasm: S) -> Result<String, Error>
Disassemble wasm binary to wasm text format.
Examples
extern crate wabt; use wabt::wasm2wat; fn main() { assert_eq!( wasm2wat(&[ 0, 97, 115, 109, // \0ASM - magic 1, 0, 0, 0 // 01 - version ]), Ok("(module)\n".to_owned()), ); }