 No formal specification for bzip2 exists, although an informal specification has been reverse engineered from the reference implementation.As an overview, a codice_9 stream consists of a 4-byte header, followed by zero or more compressed blocks, immediately followed by an end-of-stream marker containing a 32-bit CRC for the plaintext whole stream processed.The compressed blocks are bit-aligned and no padding occurs.