MCPcopy Create free account
hub / github.com/c2pain/RustPatchlessCLRLoader / read_file

Function read_file

src/main.rs:351–356  ·  view source on GitHub ↗
(filename: &str)

Source from the content-addressed store, hash-verified

349}
350
351fn read_file(filename: &str) -> Vec<u8> {
352 let mut file = File::open(filename).expect("Failed to open file");
353 let mut contents = Vec::new();
354 file.read_to_end(&mut contents).expect("Failed to read file");
355 contents
356 }
357
358 fn decrypt_rc4(filename: &str) -> Vec<u8> {
359 let mut buf = read_file(filename);

Callers 1

decrypt_rc4Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected