Home
last modified time | relevance | path

Searched refs:fSize (Results 1 – 3 of 3) sorted by relevance

/freebsd/sys/contrib/zstd/examples/
H A Dsimple_compression.c19 size_t fSize; in compress_orDie() local
20 void* const fBuff = mallocAndLoadFile_orDie(fname, &fSize); in compress_orDie()
21 size_t const cBuffSize = ZSTD_compressBound(fSize); in compress_orDie()
28 size_t const cSize = ZSTD_compress(cBuff, cBuffSize, fBuff, fSize, 1); in compress_orDie()
34 printf("%25s : %6u -> %7u - %s \n", fname, (unsigned)fSize, (unsigned)cSize, oname); in compress_orDie()
H A Ddictionary_compression.c32 size_t fSize; in compress() local
33 void* const fBuff = mallocAndLoadFile_orDie(fname, &fSize); in compress()
34 size_t const cBuffSize = ZSTD_compressBound(fSize); in compress()
45 size_t const cSize = ZSTD_compress_usingCDict(cctx, cBuff, cBuffSize, fBuff, fSize, cdict); in compress()
51 printf("%25s : %6u -> %7u - %s \n", fname, (unsigned)fSize, (unsigned)cSize, oname); in compress()
H A Dmultiple_simple_compression.c68 size_t fSize = loadFile_orDie(fname, ress.fBuffer, ress.fBufferSize); in compressFile_orDie() local
74 …const cSize = ZSTD_compressCCtx(ress.cctx, ress.cBuffer, ress.cBufferSize, ress.fBuffer, fSize, 1); in compressFile_orDie()
80 printf("%25s : %6u -> %7u - %s \n", fname, (unsigned)fSize, (unsigned)cSize, oname); in compressFile_orDie()