summaryrefslogtreecommitdiff
path: root/src/label_formats/label_format.rs
diff options
context:
space:
mode:
authorcc <cc@localhost>2025-08-20 21:13:36 -0700
committercc <cc@localhost>2025-08-20 21:13:36 -0700
commit41b4532661e52e07517faec8c0f9a93a33e3f105 (patch)
tree2f633cd6498331f31fdbdf133e9dec4651c24d01 /src/label_formats/label_format.rs
parentb903f5a5e9250691bab6644200b244a0da961219 (diff)
File output bindings
Diffstat (limited to 'src/label_formats/label_format.rs')
-rw-r--r--src/label_formats/label_format.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/label_formats/label_format.rs b/src/label_formats/label_format.rs
index b2373f5..afbb2ad 100644
--- a/src/label_formats/label_format.rs
+++ b/src/label_formats/label_format.rs
@@ -172,6 +172,10 @@ impl LabelFormat {
x.ierode();
x
}
+
+ pub fn dump(&self, filename: &str) -> Result<(), std::io::Error> {
+ crate::binfile::dump_u16_vec(filename, self.buffer.clone())
+ }
}
#[cfg(test)]