diff options
author | cc <cc@localhost> | 2025-08-28 02:02:37 -0700 |
---|---|---|
committer | cc <cc@localhost> | 2025-08-28 02:02:58 -0700 |
commit | b2bb714ad8287a33a1ee399999e340471b0bb4b4 (patch) | |
tree | 9a7567ef8e8cbd9dab0dc91f4c33e2ef2100ed3c /src/binfile.rs | |
parent | 6b82dd150073836e57a148d7eccae5276b9baea7 (diff) |
Unifying label formats
Diffstat (limited to 'src/binfile.rs')
-rw-r--r-- | src/binfile.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/binfile.rs b/src/binfile.rs index 5b0b783..b61945a 100644 --- a/src/binfile.rs +++ b/src/binfile.rs @@ -1,18 +1,5 @@ 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; |