summaryrefslogtreecommitdiff
path: root/src/binfile.rs
diff options
context:
space:
mode:
authorcc <cc@localhost>2025-08-20 22:23:34 -0700
committercc <cc@localhost>2025-08-20 22:23:49 -0700
commit00e05ac35b85fdf0e7eb5f5db9db4b0a563fa14d (patch)
treeb3b203070d29821e855be4acfe9cfc95c657d002 /src/binfile.rs
parentcf4b76823629e10d79a6a848a6ffaa72d494811d (diff)
Externalize Label Structure
Diffstat (limited to 'src/binfile.rs')
-rw-r--r--src/binfile.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/binfile.rs b/src/binfile.rs
deleted file mode 100644
index 5b0b783..0000000
--- a/src/binfile.rs
+++ /dev/null
@@ -1,27 +0,0 @@
-use std::io::{Error,ErrorKind};
-
-pub fn dump_u32_vec(file_name: &str, data: Vec<u32>) -> Result<(), Error> {
- use std::fs::File;
- use std::io::Write;
- if let Ok(mut file) = File::create(file_name) {
- for value in data {
- file.write_all(&value.to_le_bytes())?;
- }
- } else {
- return Err(Error::new(ErrorKind::Other, "Error creating file"));
- }
- Ok(())
-}
-
-pub fn dump_u16_vec(file_name: &str, data: Vec<u16>) -> Result<(), Error> {
- use std::fs::File;
- use std::io::Write;
- if let Ok(mut file) = File::create(file_name) {
- for value in data {
- file.write_all(&value.to_le_bytes())?;
- }
- } else {
- return Err(Error::new(ErrorKind::Other, "Error creating file"));
- }
- Ok(())
-}