Initial commit.

This commit is contained in:
2024-08-17 13:49:53 +03:00
commit e989633e03
16 changed files with 1114 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
use std::fs::File;
use std::io::{self, Read};
pub fn read_file_as_bytes(path: &str) -> io::Result<Vec<u8>> {
let mut file = File::open(path)?;
let mut buffer = Vec::new();
file.read_to_end(&mut buffer)?;
Ok(buffer)
}