We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The size of the compressed bytes should be compared to the size of the uncompressed bytes. The following TODO shows the position of one of the checks.
diff --git a/src/metadata.rs b/src/metadata.rs index da6af38..cbd9969 100644 --- a/src/metadata.rs +++ b/src/metadata.rs @@ -77,6 +77,8 @@ impl Write for MetadataWriter { self.block_size, )?; + // TODO: check if compressed bytes is < uncompressed bytes + // Metadata len + bytes + last metadata_start self.metadata_start += 2 + b.len() as u32; trace!("new metadata start: {:#02x?}", self.metadata_start);
The length would need to be updated when written to the block, as right now it assumes it will always be compressed.
The text was updated successfully, but these errors were encountered:
#250 should solve this
Sorry, something went wrong.
No branches or pull requests
The size of the compressed bytes should be compared to the size of the uncompressed bytes. The following TODO shows the position of one of the checks.
The length would need to be updated when written to the block, as right now it assumes it will always be compressed.
The text was updated successfully, but these errors were encountered: