title: How to decompress zstd file?
body: <p>I am using zstd 1.4.9 in a c++ project and now I am looking for a way to decompress a zstd file which contains multiple zstd frames. But I couldn't find any example for myself to do it. I tried to get the frame header descriptor and find out the frame header size using <code>ZSTD_frameHeaderSize</code> function, then read the frame header and find out the size of the whole frame using <code>ZSTD_getFrameContentSize</code>, then read the whole frame and decompress it. and so on with each following frame. But is that the whole story? as mentioned <a href="https://github.com/facebook/zstd/blob/dev/doc/zstd_compression_format.md#frame_header_descriptor" rel="nofollow noreferrer">here</a> , the frame header may not contain Frame_Content_Size, and hence the question. How to decompress zstd file with multiple frames inside? I'll be glad to see a good decompression code example.</p>