Function infer::is_app[][src]

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()));