Function infer::app::is_exe[][src]

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

Returns whether a buffer is an EXE. DLL and EXE have the same magic number, so returns true also for a DLL.

Example

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