mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
document type_size
This commit is contained in:
1 parent
0814a1999e
commit
53c876fe20
1 file changed
+1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user