infer

Function is_app

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

Determines whether a buffer is an application type.

ยงExamples

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