Home
last modified time | relevance | path

Searched refs:rSize (Results 1 – 13 of 13) sorted by relevance

/f-stack/freebsd/contrib/zstd/examples/
H A Dsimple_decompression.c26 unsigned long long const rSize = ZSTD_getFrameContentSize(cBuff, cSize); in decompress() local
27 CHECK(rSize != ZSTD_CONTENTSIZE_ERROR, "%s: not compressed by zstd!", fname); in decompress()
28 CHECK(rSize != ZSTD_CONTENTSIZE_UNKNOWN, "%s: original size unknown!", fname); in decompress()
30 void* const rBuff = malloc_orDie((size_t)rSize); in decompress()
37 size_t const dSize = ZSTD_decompress(rBuff, rSize, cBuff, cSize); in decompress()
40 CHECK(dSize == rSize, "Impossible because zstd will check this condition!"); in decompress()
43 printf("%25s : %6u -> %7u \n", fname, (unsigned)cSize, (unsigned)rSize); in decompress()
H A Ddictionary_decompression.c40 unsigned long long const rSize = ZSTD_getFrameContentSize(cBuff, cSize); in decompress() local
41 CHECK(rSize != ZSTD_CONTENTSIZE_ERROR, "%s: not compressed by zstd!", fname); in decompress()
42 CHECK(rSize != ZSTD_CONTENTSIZE_UNKNOWN, "%s: original size unknown!", fname); in decompress()
43 void* const rBuff = malloc_orDie((size_t)rSize); in decompress()
64 size_t const dSize = ZSTD_decompress_usingDDict(dctx, rBuff, rSize, cBuff, cSize, ddict); in decompress()
67 CHECK(dSize == rSize, "Impossible because zstd will check this condition!"); in decompress()
70 printf("%25s : %6u -> %7u \n", fname, (unsigned)cSize, (unsigned)rSize); in decompress()
/f-stack/freebsd/contrib/zstd/zlibWrapper/examples/
H A Dzwrapbench.c243 size_t rSize; in BMK_benchMem() local
255 …if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_compress_usingCDict() failed : %s", ZSTD_getErrorName( in BMK_benchMem()
266 size_t rSize; in BMK_benchMem() local
269 …if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_initCStream_advanced() failed : %s", ZSTD_getErrorName… in BMK_benchMem()
274 …if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_resetCStream() failed : %s", ZSTD_getErrorName(rSize)); in BMK_benchMem()
282 …if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_compressStream() failed : %s", ZSTD_getErrorName(rSize in BMK_benchMem()
284 … if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_endStream() failed : %s", ZSTD_getErrorName(rSize)); in BMK_benchMem()
414 size_t rSize; in BMK_benchMem() local
417 … if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_initDStream() failed : %s", ZSTD_getErrorName(rSize)); in BMK_benchMem()
422 …if (ZSTD_isError(rSize)) EXM_THROW(1, "ZSTD_resetDStream() failed : %s", ZSTD_getErrorName(rSize)); in BMK_benchMem()
[all …]
/f-stack/freebsd/contrib/zstd/lib/decompress/
H A Dzstd_decompress.c962 { size_t rSize; in ZSTD_decompressContinue() local
972 rSize = ZSTD_copyRawBlock(dst, dstCapacity, src, srcSize); in ZSTD_decompressContinue()
973 FORWARD_IF_ERROR(rSize, "ZSTD_copyRawBlock failed"); in ZSTD_decompressContinue()
974 assert(rSize == srcSize); in ZSTD_decompressContinue()
975 dctx->expected -= rSize; in ZSTD_decompressContinue()
985 FORWARD_IF_ERROR(rSize, ""); in ZSTD_decompressContinue()
988 dctx->decodedSize += rSize; in ZSTD_decompressContinue()
989 if (dctx->validateChecksum) XXH64_update(&dctx->xxhState, dst, rSize); in ZSTD_decompressContinue()
990 dctx->previousDstEnd = (char*)dst + rSize; in ZSTD_decompressContinue()
994 return rSize; in ZSTD_decompressContinue()
[all …]
/f-stack/freebsd/contrib/zstd/lib/legacy/
H A Dzstd_v01.c2138 size_t rSize; in ZSTDv01_decompressContinue() local
2142 rSize = ZSTD_decompressBlock(ctx, dst, maxDstSize, src, srcSize); in ZSTDv01_decompressContinue()
2145 rSize = ZSTD_copyUncompressedBlock(dst, maxDstSize, src, srcSize); in ZSTDv01_decompressContinue()
2151 rSize = 0; in ZSTDv01_decompressContinue()
2158 ctx->previousDstEnd = (void*)( ((char*)dst) + rSize); in ZSTDv01_decompressContinue()
2159 return rSize; in ZSTDv01_decompressContinue()
H A Dzstd_v03.c3101 size_t rSize; in ZSTD_decompressContinue() local
3105 rSize = ZSTD_decompressBlock(ctx, dst, maxDstSize, src, srcSize); in ZSTD_decompressContinue()
3108 rSize = ZSTD_copyUncompressedBlock(dst, maxDstSize, src, srcSize); in ZSTD_decompressContinue()
3114 rSize = 0; in ZSTD_decompressContinue()
3121 ctx->previousDstEnd = (void*)( ((char*)dst) + rSize); in ZSTD_decompressContinue()
3122 return rSize; in ZSTD_decompressContinue()
H A Dzstd_v07.c4046 { size_t rSize; in ZSTDv07_decompressContinue() local
4050 rSize = ZSTDv07_decompressBlock_internal(dctx, dst, dstCapacity, src, srcSize); in ZSTDv07_decompressContinue()
4053 rSize = ZSTDv07_copyRawBlock(dst, dstCapacity, src, srcSize); in ZSTDv07_decompressContinue()
4059 rSize = 0; in ZSTDv07_decompressContinue()
4066 dctx->previousDstEnd = (char*)dst + rSize; in ZSTDv07_decompressContinue()
4067 if (ZSTDv07_isError(rSize)) return rSize; in ZSTDv07_decompressContinue()
4068 if (dctx->fParams.checksumFlag) XXH64_update(&dctx->xxhState, dst, rSize); in ZSTDv07_decompressContinue()
4069 return rSize; in ZSTDv07_decompressContinue()
H A Dzstd_v04.c3247 size_t rSize; in ZSTD_decompressContinue() local
3251 rSize = ZSTD_decompressBlock_internal(ctx, dst, maxDstSize, src, srcSize); in ZSTD_decompressContinue()
3254 rSize = ZSTD_copyRawBlock(dst, maxDstSize, src, srcSize); in ZSTD_decompressContinue()
3260 rSize = 0; in ZSTD_decompressContinue()
3267 ctx->previousDstEnd = (char*)dst + rSize; in ZSTD_decompressContinue()
3268 return rSize; in ZSTD_decompressContinue()
H A Dzstd_v02.c3459 size_t rSize; in ZSTD_decompressContinue() local
3463 rSize = ZSTD_decompressBlock(ctx, dst, maxDstSize, src, srcSize); in ZSTD_decompressContinue()
3466 rSize = ZSTD_copyUncompressedBlock(dst, maxDstSize, src, srcSize); in ZSTD_decompressContinue()
3472 rSize = 0; in ZSTD_decompressContinue()
3479 ctx->previousDstEnd = (void*)( ((char*)dst) + rSize); in ZSTD_decompressContinue()
3480 return rSize; in ZSTD_decompressContinue()
H A Dzstd_v06.c3774 { size_t rSize; in ZSTDv06_decompressContinue() local
3778 rSize = ZSTDv06_decompressBlock_internal(dctx, dst, dstCapacity, src, srcSize); in ZSTDv06_decompressContinue()
3781 rSize = ZSTDv06_copyRawBlock(dst, dstCapacity, src, srcSize); in ZSTDv06_decompressContinue()
3787 rSize = 0; in ZSTDv06_decompressContinue()
3794 dctx->previousDstEnd = (char*)dst + rSize; in ZSTDv06_decompressContinue()
3795 return rSize; in ZSTDv06_decompressContinue()
H A Dzstd_v05.c3633 size_t rSize; in ZSTDv05_decompressContinue() local
3637 rSize = ZSTDv05_decompressBlock_internal(dctx, dst, maxDstSize, src, srcSize); in ZSTDv05_decompressContinue()
3640 rSize = ZSTDv05_copyRawBlock(dst, maxDstSize, src, srcSize); in ZSTDv05_decompressContinue()
3646 rSize = 0; in ZSTDv05_decompressContinue()
3653 dctx->previousDstEnd = (char*)dst + rSize; in ZSTDv05_decompressContinue()
3654 return rSize; in ZSTDv05_decompressContinue()
/f-stack/freebsd/contrib/openzfs/module/zstd/lib/
H A Dzstd.c17319 U32 const tableID = (rSize <= 256 KB) + (rSize <= 128 KB) + (rSize <= 16 KB); in ZSTD_getCParams_internal()
25459 { size_t rSize; in ZSTD_decompressContinue() local
25469 rSize = ZSTD_copyRawBlock(dst, dstCapacity, src, srcSize); in ZSTD_decompressContinue()
25470 FORWARD_IF_ERROR(rSize, "ZSTD_copyRawBlock failed"); in ZSTD_decompressContinue()
25471 assert(rSize == srcSize); in ZSTD_decompressContinue()
25472 dctx->expected -= rSize; in ZSTD_decompressContinue()
25482 FORWARD_IF_ERROR(rSize, ""); in ZSTD_decompressContinue()
25485 dctx->decodedSize += rSize; in ZSTD_decompressContinue()
25487 dctx->previousDstEnd = (char*)dst + rSize; in ZSTD_decompressContinue()
25491 return rSize; in ZSTD_decompressContinue()
[all …]
/f-stack/freebsd/contrib/zstd/lib/compress/
H A Dzstd_compress.c5156 U64 const rSize = ZSTD_getCParamRowSize(srcSizeHint, dictSize, mode); in ZSTD_getCParams_internal() local
5157 U32 const tableID = (rSize <= 256 KB) + (rSize <= 128 KB) + (rSize <= 16 KB); in ZSTD_getCParams_internal()