pub fn is_wasm(buf: &[u8]) -> bool
Returns whether a buffer is a wasm.
use std::fs; assert!(infer::app::is_wasm(&fs::read("testdata/sample.wasm").unwrap()));