SwiftZSTD
SwiftZSTD copied to clipboard
freeing dictionary makes the code working only once
for my code to work I need to comment out these two lines. other than that it can decompress only once.
deinit {
if (haveCDict) { ZSTD_freeCDict(compDict) }
if (haveDDict) { ZSTD_freeDDict(decompDict) }
}
+1