Handling Zstandard frames
Zstandard frames consist of three parts arranged in the following sequence:
- A header that provides information about the frame parameters.
- One or more blocks, which contain the compressed data.
- An optional checksum of the decompressed data.
To begin decoding and testing the code, it is necessary to parse and decode a few basic blocks. Let’s begin with this.