You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had some issues with decompression a single file, other went fine.
My fix was the following:
usingFileStreamfileStreamInput=File.OpenRead("TheInputPath");usingFileStreamfileStreamOutput=File.OpenWrite("TheOutputPath");// This is the fixIReadOnlyDictionary<ZSTD_dParameter,int>advancedParams=newDictionary<ZSTD_dParameter,int>([newKeyValuePair<ZSTD_dParameter,int>(ZSTD_dParameter.ZSTD_d_windowLogMax,31)]);DecompressionOptionsdecompressionOptions=new(null,advancedParams);awaitusingvardecompressionStream=newDecompressionStream(fileStreamInput,decompressionOptions);awaitdecompressionStream.CopyToAsync(fileStreamOutput);
I've had some issues with decompression a single file, other went fine.
My fix was the following:
Took the 31 from this
ZSTD_WINDOWLOG_MAX_64
:https://github.com/facebook/zstd/blob/v1.4.5/lib/zstd.h#L1049
I have no idea what it all means, but I hope it helps someone stuck with the same issue 😃
The text was updated successfully, but these errors were encountered: