Running the main program
Our main program should not need any change to print information or decode a zstd file containing only the supported block types.
✅ Check that you can decode the
welcome.zst
file which is made of two frames, the second one containing four blocks.
💡 You can examine the content of the compressed file by using
hexdump
or a similar program:$ hexdump -C welcome.zst 00000000 57 2a 4d 18 30 00 00 00 3e 3e 3e 20 59 4f 55 20 |W*M.0...>>> YOU | 00000010 57 49 4c 4c 20 4e 4f 54 20 53 45 45 20 54 48 49 |WILL NOT SEE THI| 00000020 53 20 50 41 52 54 20 49 4e 20 54 48 45 20 4f 55 |S PART IN THE OU| 00000030 54 50 55 54 20 3c 3c 3c 28 b5 2f fd 24 7e 4a 01 |TPUT <<<(./.$~J.| 00000040 00 23 58 01 00 0a 23 20 57 65 6c 63 6f 6d 65 20 |.#X...# Welcome | 00000050 74 6f 20 54 65 6c 65 63 6f 6d 20 50 61 72 69 73 |to Telecom Paris| 00000060 20 7a 73 74 64 20 65 78 61 6d 70 6c 65 20 23 0a | zstd example #.| 00000070 4a 01 00 23 09 00 00 0a 9e 2e 5d 9f |J..#......].| 0000007c