Fix not writing entry block count

This commit is contained in:
Truman Kilen 2023-02-10 19:31:03 -06:00
parent f94e6c460d
commit 9692c7a4d1

View file

@ -205,6 +205,7 @@ impl Entry {
} }
if version.version_major() >= VersionMajor::CompressionEncryption { if version.version_major() >= VersionMajor::CompressionEncryption {
if let Some(blocks) = &self.blocks { if let Some(blocks) = &self.blocks {
writer.write_u32::<LE>(blocks.len() as u32)?;
for block in blocks { for block in blocks {
block.write(writer)?; block.write(writer)?;
} }