Add EntryBytesReader: impl Read + Seek

This commit is contained in:
A. Molzer committed 2026-03-31 09:16:33 +02:00
1 parent 017425b200
commit f890d22657
4 files changed
+205 -2

No files matched your search

+2 -1
View File
@@ -488,7 +488,8 @@ impl<'a, W: 'a + Write + Seek, K: TiffKind> DirectoryEncoder<'a, W, K> {
self.writer.write_u16(entry.field_type().to_u16())?;
let count = K::convert_offset(entry.count())?;
count.write(self.writer)?;
self.writer.write_bytes(&entry.offset()[..offset_bytes])?;
self.writer
.write_bytes(&entry.offset_raw()[..offset_bytes])?;
}
Ok(offset)