Home
last modified time | relevance | path

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

/lib/zstd/
Dhuf_compress.c135 CHECK_V_F(cSize, FSE_compress_usingCTable(op, oend - op, weightTable, wtSize, CTable)); in HUF_compressWeights_wksp()
136 if (cSize == 0) in HUF_compressWeights_wksp()
138 op += cSize; in HUF_compressWeights_wksp()
597 CHECK_V_F(cSize, HUF_compress1X_usingCTable(op, oend - op, ip, segmentSize, CTable)); in HUF_compress4X_usingCTable()
598 if (cSize == 0) in HUF_compress4X_usingCTable()
600 ZSTD_writeLE16(ostart, (U16)cSize); in HUF_compress4X_usingCTable()
601 op += cSize; in HUF_compress4X_usingCTable()
606 CHECK_V_F(cSize, HUF_compress1X_usingCTable(op, oend - op, ip, segmentSize, CTable)); in HUF_compress4X_usingCTable()
607 if (cSize == 0) in HUF_compress4X_usingCTable()
609 ZSTD_writeLE16(ostart + 2, (U16)cSize); in HUF_compress4X_usingCTable()
[all …]
Dcompress.c623 size_t const cSize = ZSTD_compressLiterals(zc, op, dstCapacity, literals, litSize); in ZSTD_compressSequences_internal() local
624 if (ZSTD_isError(cSize)) in ZSTD_compressSequences_internal()
625 return cSize; in ZSTD_compressSequences_internal()
626 op += cSize; in ZSTD_compressSequences_internal()
834 size_t const cSize = ZSTD_compressSequences_internal(zc, dst, dstCapacity); in ZSTD_compressSequences() local
841 int const uncompressibleError = cSize == ERROR(dstSize_tooSmall) && srcSize <= dstCapacity; in ZSTD_compressSequences()
844 if (ZSTD_isError(cSize) && !uncompressibleError) in ZSTD_compressSequences()
845 return cSize; in ZSTD_compressSequences()
846 if (cSize >= maxCSize || uncompressibleError) { in ZSTD_compressSequences()
853 return cSize; in ZSTD_compressSequences()
[all …]
Ddecompress.c400 U32 const cSize = cBlockHeader >> 3; in ZSTD_getcBlockSize() local
403 bpPtr->origSize = cSize; /* only useful for RLE */ in ZSTD_getcBlockSize()
408 return cSize; in ZSTD_getcBlockSize()
2336 size_t const cSize = ZSTD_findFrameCompressedSize(istart, iend - istart); in ZSTD_decompressStream() local
2337 if (cSize <= (size_t)(iend - istart)) { in ZSTD_decompressStream()
2338 …decompressedSize = ZSTD_decompress_usingDDict(zds->dctx, op, oend - op, istart, cSize, zds->ddict); in ZSTD_decompressStream()
2341 ip = istart + cSize; in ZSTD_decompressStream()