mirror of
https://github.com/facebook/zstd.git
synced 2025-07-04 07:42:31 +03:00
refactor utils.h and implement simple_compressionCCtx.c
This commit is contained in:
@ -20,7 +20,7 @@
|
||||
static void decompress(const char* fname)
|
||||
{
|
||||
size_t cSize;
|
||||
void* const cBuff = loadFile_orDie(fname, &cSize);
|
||||
void* const cBuff = loadFile_orDie(fname, &cSize, 0, 0);
|
||||
unsigned long long const rSize = ZSTD_findDecompressedSize(cBuff, cSize);
|
||||
if (rSize==ZSTD_CONTENTSIZE_ERROR) {
|
||||
fprintf(stderr, "%s : it was not compressed by zstd.\n", fname);
|
||||
|
Reference in New Issue
Block a user