infer::app

Function is_wasm

Source
pub fn is_wasm(buf: &[u8]) -> bool
Expand description

Returns whether a buffer is a wasm.

ยงExamples

use std::fs;
assert!(infer::app::is_wasm(&fs::read("testdata/sample.wasm").unwrap()));