PhotoCraft: An open-source, photo editor written by scratch in pure Rust
document type_size
Omar Saidahmed53c876fe201d
diff --git a/crates/raw/src/tiff.rs b/crates/raw/src/tiff.rsindex a5c60ef57..2f685ccb2 100644--- a/crates/raw/src/tiff.rs+++ b/crates/raw/src/tiff.rs@@ -116,6 +116,7 @@ impl Ifd {}}+/// Bytes per value of TIFF field type `typ`, BigTIFF's 8-byte types included, or 0 for an unknown type.pub(crate) fn type_size(typ: u16) -> usize {match typ {1 | 2 | 6 | 7 => 1,