-
Notifications
You must be signed in to change notification settings - Fork 220
Bzip3 #673
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
base: master
Are you sure you want to change the base?
Bzip3 #673
Changes from 2 commits
152d21f
41fef77
4d73147
3338f25
03ad5f5
f33c2af
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| meta: | ||
| id: bzip3 | ||
| title: Bzip3 header | ||
| file-extension: bz3 | ||
| license: LGPL-3.0 | ||
| encoding: UTF-8 | ||
armijnhemel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| endian: le | ||
| doc: | ||
| bzip3 is a decompression tool and library. Depending on whether or not the | ||
| CLI or the library is used the file format is slightly different. This | ||
| specification describes the structure of the format as generated by the CLI | ||
| (header and chunks, not blocks). | ||
| doc-ref: | ||
| - https://github.com/kspalaiologos/bzip3 | ||
| - https://github.com/kspalaiologos/bzip3/blob/972e6694b815/doc/bzip3_format.md | ||
| seq: | ||
| - id: header | ||
| type: header | ||
| - id: blocks | ||
| type: compressed_data_block | ||
| repeat: until | ||
| repeat-until: _io.eof or _.is_last | ||
| types: | ||
| header: | ||
| seq: | ||
| - id: signature | ||
| contents: 'BZ3v1' | ||
| - id: block_size | ||
armijnhemel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| type: u4 | ||
| valid: | ||
| min: 66560 | ||
| max: 535822336 | ||
armijnhemel marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| compressed_data_block: | ||
| seq: | ||
| - id: len_compressed | ||
| type: u4 | ||
| - id: len_uncompressed | ||
| type: u4 | ||
| valid: | ||
| max: _root.header.block_size | ||
| - id: data | ||
| size: len_compressed | ||
| instances: | ||
| is_last: | ||
| value: len_uncompressed < _root.header.block_size | ||
|
||
Uh oh!
There was an error while loading. Please reload this page.