mirror of
https://github.com/regular/unbzip2-stream.git
synced 2026-07-11 01:18:39 +00:00
streamCRC being null indicates that the last BZ2 stream ended or none has started yet. Once in a BZ2 stream, the value needs to be initialized to 0 even when it contains no blocks to pass the final CRC check. A completely empty input stream leaves streamCRC at null and likewise produces an empty output.