infer::app

Function is_exe

source
pub fn is_exe(buf: &[u8]) -> bool
Expand description

Returns whether a buffer is an EXE.

ยงExample

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