mirror of
https://github.com/facebook/zstd.git
synced 2025-07-17 04:32:26 +02:00
Adding CLI capability to invoke decompression with no checksum
This commit is contained in:
@ -1754,6 +1754,10 @@ static dRess_t FIO_createDResources(FIO_prefs_t* const prefs, const char* dictFi
|
||||
if (ress.dctx==NULL)
|
||||
EXM_THROW(60, "Error: %s : can't create ZSTD_DStream", strerror(errno));
|
||||
CHECK( ZSTD_DCtx_setMaxWindowSize(ress.dctx, prefs->memLimit) );
|
||||
if (!prefs->checksumFlag) {
|
||||
DISPLAY("Ignoring checksums...");
|
||||
CHECK( ZSTD_DCtx_setForceIgnoreChecksum(ress.dctx, 1 /* ZSTD_d_ignoreChecksum */));
|
||||
}
|
||||
ress.srcBufferSize = ZSTD_DStreamInSize();
|
||||
ress.srcBuffer = malloc(ress.srcBufferSize);
|
||||
ress.dstBufferSize = ZSTD_DStreamOutSize();
|
||||
|
Reference in New Issue
Block a user