Skip to content
New issue

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

Rewritten: BZip3 Format Explanation #143

Merged
merged 7 commits into from
Dec 14, 2024

Conversation

Sewer56
Copy link
Contributor

@Sewer56 Sewer56 commented Dec 12, 2024

This is a slight rewrite of the bzip3 specification, in order to try making it a tiny bit simpler to follow.
The read order is linear, so rather than splitting up into separate files, you get File OR Frame header followed by the blocks.

The provided structures in the spec use 'pseudo-structs', similar to those found in 010Editor templates and ImHex patterns; rather than having to provide a paragraph explanation which may confuse users.

In addition, I've taken a bit of care to ensure that there is a clear separation between file header/frame header and block/chunk. Notably, before the block API docs page started with a description of the chunks, but bz3_encode_block does not write a chunk. This is very clear in the docs now.

All in all it's a first draft.
For any further changes, just commit them directly to the branch; no need for in-depth review; unless asking for comment.

@kspalaiologos
Copy link
Owner

Looks great so far, thank you!

@Sewer56
Copy link
Contributor Author

Sewer56 commented Dec 13, 2024

I accidentally swapped the 'frame' and 'file' headers around it seems yesterday. I resolved this.

Copy link
Owner

@kspalaiologos kspalaiologos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think that I am done with my own corrections.

@kspalaiologos kspalaiologos merged commit 972e669 into kspalaiologos:master Dec 14, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants