catconf

Function read_from_exe

Source
pub fn read_from_exe(magic_bytes: &[u8], window_size: i64) -> Result<Vec<u8>>
Expand description

Useful if you just want to read from the current exe without bothering to use the builder

ยงExample

use catconf::read_from_exe;

let conf = read_from_exe(b"CATCONF", 4096)?;