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

Bzip3 #673

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Bzip3 #673

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions archive/bzip3.ksy
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
meta:
id: bzip3
title: Bzip3 header
file-extension: bz3
license: LGPL-3.0
encoding: UTF-8
endian: le
doc-ref: https://github.com/kspalaiologos/bzip3
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
type: u4
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