0

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 ZSTD_frameHeaderSize function, then read the frame header and find out the size of the whole frame using ZSTD_getFrameContentSize, then read the whole frame and decompress it. and so on with each following frame. But is that the whole story? as mentioned here , 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.

Vahag Chakhoyan
  • 873
  • 1
  • 10
  • 21

0 Answers0