Closed GerwinBosch closed 5 years ago
I tried your example file with the code from README, and indeed, it stops after outputting roughly 1 MB (1048576 bytes to be precise).
Turns out your example file is the concatenation of multiple, independently compressed files. That's legal and the original bunzip2 (the cli binary) has no trouble decoding such files. It's simply a feature that is not implemented here. The good news: it is currently being implemented.
Fixed in unbzip2-stream@1.3.0
The parser stops without an error when it only parsed a chunk. Example file
Example code
Notice that the end event of bzip is thrown almost immediately