1
0
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:
Yi Jin
2018-12-14 18:12:05 -08:00
parent 193fbd30f2
commit 04d06ad885
8 changed files with 106 additions and 68 deletions

View File

@ -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);