document type_size

This commit is contained in:
Omar Saidahmed committed 2026-10-18 20:02:48 -04:00
1 parent 0814a1999e
commit 53c876fe20
1 file changed
+1
+1
View File
@@ -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,