HomeSort by: relevance | last modified time | path
    Searched refs:cSize (Results 1 - 25 of 51) sorted by relevancy

1 2 3

  /src/external/bsd/zstd/dist/examples/
simple_decompression.c 18 size_t cSize;
19 void* const cBuff = mallocAndLoadFile_orDie(fname, &cSize);
26 unsigned long long const rSize = ZSTD_getFrameContentSize(cBuff, cSize);
37 size_t const dSize = ZSTD_decompress(rBuff, rSize, cBuff, cSize);
43 printf("%25s : %6u -> %7u \n", fname, (unsigned)cSize, (unsigned)rSize);
dictionary_decompression.c 32 size_t cSize;
33 void* const cBuff = mallocAndLoadFile_orDie(fname, &cSize);
40 unsigned long long const rSize = ZSTD_getFrameContentSize(cBuff, cSize);
51 unsigned const actualDictID = ZSTD_getDictID_fromFrame(cBuff, cSize);
64 size_t const dSize = ZSTD_decompress_usingDDict(dctx, rBuff, rSize, cBuff, cSize, ddict);
70 printf("%25s : %6u -> %7u \n", fname, (unsigned)cSize, (unsigned)rSize);
simple_compression.c 28 size_t const cSize = ZSTD_compress(cBuff, cBuffSize, fBuff, fSize, 1);
29 CHECK_ZSTD(cSize);
31 saveFile_orDie(oname, cBuff, cSize);
34 printf("%25s : %6u -> %7u - %s \n", fname, (unsigned)fSize, (unsigned)cSize, oname);
dictionary_compression.c 55 size_t const cSize = ZSTD_compress_usingCDict(cctx, cBuff, cBuffSize, fBuff, fSize, cdict);
56 CHECK_ZSTD(cSize);
58 saveFile_orDie(oname, cBuff, cSize);
61 printf("%25s : %6u -> %7u - %s \n", fname, (unsigned)fSize, (unsigned)cSize, oname);
multiple_simple_compression.c 74 size_t const cSize = ZSTD_compressCCtx(ress.cctx, ress.cBuffer, ress.cBufferSize, ress.fBuffer, fSize, 1);
75 CHECK_ZSTD(cSize);
77 saveFile_orDie(oname, ress.cBuffer, cSize);
80 printf("%25s : %6u -> %7u - %s \n", fname, (unsigned)fSize, (unsigned)cSize, oname);
  /src/external/bsd/zstd/dist/tests/fuzz/
dictionary_round_trip.c 37 size_t cSize;
41 cSize = ZSTD_compress_usingDict(cctx,
46 FUZZ_ZASSERT(cSize);
49 size_t const cSize0 = cSize;
50 XXH64_hash_t const hash0 = XXH64(compressed, cSize, 0);
51 cSize = ZSTD_compress_usingDict(cctx,
56 FUZZ_ASSERT(cSize == cSize0);
57 FUZZ_ASSERT(XXH64(compressed, cSize, 0) == hash0);
75 cSize = ZSTD_compress2(cctx, compressed, compressedCapacity, src, srcSize);
76 FUZZ_ZASSERT(cSize);
    [all...]
simple_round_trip.c 30 static size_t getDecompressionMargin(void const* compressed, size_t cSize, size_t srcSize, int hasSmallBlocks, int maxBlockSize)
32 size_t margin = ZSTD_decompressionMargin(compressed, cSize);
39 FUZZ_ZASSERT(ZSTD_getFrameHeader(&zfh, compressed, cSize));
57 size_t cSize;
64 cSize = ZSTD_compress2(cctx, compressed, compressedCapacity, src, srcSize);
65 FUZZ_ZASSERT(cSize);
70 size_t const cSize0 = cSize;
71 XXH64_hash_t const hash0 = XXH64(compressed, cSize, 0);
74 cSize = ZSTD_compress2(cctx, compressed, compressedCapacity, src, srcSize);
75 FUZZ_ASSERT(cSize == cSize0)
    [all...]
huf_round_trip.c 111 size_t cSize;
114 cSize = HUF_compress1X_usingCTable(cBuf, cBufSize, src, size, ct, flags);
115 FUZZ_ZASSERT(cSize);
116 if (cSize != 0)
117 rSize = HUF_decompress1X_usingDTable(rBuf, size, cBuf, cSize, dt, flags);
119 cSize = HUF_compress4X_usingCTable(cBuf, cBufSize, src, size, ct, flags);
120 FUZZ_ZASSERT(cSize);
121 if (cSize != 0)
122 rSize = HUF_decompress4X_usingDTable(rBuf, size, cBuf, cSize, dt, flags);
124 if (cSize != 0)
    [all...]
decompress_dstSize_tooSmall.c 56 size_t const cSize = ZSTD_compressCCtx(cctx, cBuf, cBufSize, src, size, 1);
57 FUZZ_ZASSERT(cSize);
58 size_t const rSize = ZSTD_decompressDCtx(dctx, rBuf, rBufSize, cBuf, cSize);
raw_dictionary_round_trip.c 37 size_t cSize;
51 cSize = ZSTD_compress2(cctx, compressed, compressedCapacity, src, srcSize);
52 FUZZ_ZASSERT(cSize);
65 dctx, result, resultCapacity, compressed, cSize);
stream_round_trip.c 186 size_t const cSize = compress(cBuf, neededBufSize, src, size, producer);
187 size_t const rSize = decompress(rBuf, neededBufSize, cBuf, cSize, producer);
194 size_t const margin = ZSTD_decompressionMargin(cBuf, cSize);
197 char* const input = output + outputSize - cSize;
199 FUZZ_ASSERT(outputSize >= cSize);
200 memcpy(input, cBuf, cSize);
202 dSize = ZSTD_decompressDCtx(dctx, output, outputSize, input, cSize);
dictionary_loader.c 88 size_t const cSize =
91 if (ZSTD_isError(cSize)) {
96 decompress(rBuf, size, cBuf, cSize, src, size, dlm, dct, refPrefix);
sequence_compression_api.c 260 size_t cSize, litSize;
265 cSize = ZSTD_compressSequencesAndLiterals(cctx,
270 if (ZSTD_getErrorCode(cSize) == ZSTD_error_cannotProduce_uncompressedBlock) {
274 if (ZSTD_getErrorCode(cSize) == ZSTD_error_dstSize_tooSmall) {
283 FUZZ_ZASSERT(cSize);
284 { size_t const dSize = ZSTD_decompressDCtx(dctx, result, resultCapacity, compressed, cSize);
299 size_t cSize;
316 cSize = ZSTD_compressSequences(cctx, compressed, compressedCapacity,
319 if ( (ZSTD_getErrorCode(cSize) == ZSTD_error_dstSize_tooSmall)
328 FUZZ_ZASSERT(cSize);
    [all...]
seekable_roundtrip.c 53 size_t cSize = ZSTD_seekable_compressStream(zscs, &out, &in);
54 FUZZ_ASSERT(!ZSTD_isError(cSize));
  /src/external/bsd/zstd/dist/contrib/externalSequenceProducer/
main.c 76 size_t const cSize = ZSTD_compress2(zc, dst, dstSize, src, srcSize);
77 CHECK(cSize);
83 size_t const res = ZSTD_decompress(val, srcSize, dst, cSize);
90 printf("Compressed size: %lu\n", cSize);
  /src/external/bsd/zstd/dist/tests/
fuzzer.c 385 size_t cSize;
387 cSize = ZSTD_compress2(args->cctx, args->compressedBuffer, args->compressedBufferSize, args->CNBuffer, args->CNBuffSize);
388 if (ZSTD_isError(cSize)) args->err = 1;
389 if (ZSTD_isError(ZSTD_decompress(args->decodedBuffer, args->CNBuffSize, args->compressedBuffer, cSize))) args->err = 1;
524 size_t const cSize = ZSTD_compress(cBuffer, sizeof(cBuffer), example, sizeof(example), 0);
525 CHECK_Z(cSize);
526 CHECK_EQ(ZSTD_decompressBound(cBuffer, cSize), (unsigned long long)sizeof(example));
659 size_t cSize;
718 CHECK_VAR(cSize, ZSTD_compressCCtx(cctx,
721 DISPLAYLEVEL(3, "OK (%u bytes : %.2f%%)\n", (unsigned)cSize, (double)cSize/CNBuffSize*100)
    [all...]
zstreamtest.c 272 size_t cSize;
322 cSize = skippableFrameSize + 8;
329 outBuff.dst = (char*)(compressedBuffer)+cSize;
330 assert(compressedBufferSize > cSize);
331 outBuff.size = compressedBufferSize - cSize;
340 cSize += outBuff.pos;
342 (unsigned)cSize, (double)cSize/COMPRESSIBLE_NOISE_LENGTH*100);
388 inBuff.size = cSize;
441 size_t const gfhError = ZSTD_getFrameHeader(&fhi, cStart, cSize);
    [all...]
roundTripCrash.c 71 size_t const cSize = ZSTD_compress(compressedBuff, compressedBuffCapacity, srcBuff, srcBuffSize, cLevel);
72 if (ZSTD_isError(cSize)) {
73 fprintf(stderr, "Compression error : %s \n", ZSTD_getErrorName(cSize));
74 return cSize;
76 return ZSTD_decompress(resultBuff, resultBuffCapacity, compressedBuff, cSize);
  /src/external/bsd/zstd/dist/lib/legacy/
zstd_v01.h 41 cSize (output parameter) : the number of bytes that would be read to decompress this frame
46 note : assumes `cSize` and `dBound` are _not_ NULL.
49 size_t* cSize, unsigned long long* dBound);
zstd_v02.h 41 cSize (output parameter) : the number of bytes that would be read to decompress this frame
46 note : assumes `cSize` and `dBound` are _not_ NULL.
49 size_t* cSize, unsigned long long* dBound);
zstd_v03.h 41 cSize (output parameter) : the number of bytes that would be read to decompress this frame
46 note : assumes `cSize` and `dBound` are _not_ NULL.
49 size_t* cSize, unsigned long long* dBound);
  /src/external/bsd/zstd/dist/lib/compress/
zstd_compress_superblock.c 79 const size_t cSize = singleStream ? HUF_compress1X_usingCTable(op, (size_t)(oend-op), literals, litSize, hufTable, flags)
81 op += cSize;
82 cLitSize += cSize;
83 if (cSize == 0 || ERR_isError(cSize)) {
84 DEBUGLOG(5, "Failed to write entropy tables %s", ZSTD_getErrorName(cSize));
98 DEBUGLOG(5, "ZSTD_compressSubBlock_literal (cSize=%zu)", cSize);
300 { size_t cSize = (size_t)(op-ostart) - ZSTD_blockHeaderSize;
301 U32 const cBlockHeader24 = lastBlock + (((U32)bt_compressed)<<1) + (U32)(cSize << 3)
    [all...]
zstdmt_compress.c 637 unsigned jobID, size_t cSize)
641 assert(ZSTD_isError(cSize)); (void)cSize;
664 size_t cSize; /* SHARED - set0 by mtctx, then modified by worker AND read by mtctx, then set0 by mtctx */
687 job->cSize = e; \
770 assert(job->cSize == 0);
772 size_t const cSize = ZSTD_compressContinue_public(cctx, op, oend-op, ip, chunkSize);
773 if (ZSTD_isError(cSize)) JOB_ERROR(cSize);
775 op += cSize; assert(op < oend)
    [all...]
  /src/external/bsd/zstd/dist/zlibWrapper/examples/
zwrapbench.c 143 size_t cSize;
209 size_t cSize = 0;
256 blockTable[blockNb].cSize = rSize;
300 blockTable[blockNb].cSize = outBuffer.pos;
341 blockTable[blockNb].cSize = def.total_out;
374 blockTable[blockNb].cSize = def.total_out;
385 cSize = 0;
386 { U32 blockNb; for (blockNb=0; blockNb<nbBlocks; blockNb++) cSize += blockTable[blockNb].cSize; }
387 ratio = (double)srcSize / (double)cSize;
    [all...]
  /src/external/bsd/zstd/dist/contrib/linux-kernel/test/
test.c 146 size_t cSize;
155 cSize = zstd_compress_cctx(cctx, data->comp, data->compSize, data->data, data->dataSize, &params);
156 CONTROL(!zstd_is_error(cSize));
166 size_t const dSize = zstd_decompress_dctx(dctx, data->data2, data->dataSize, data->comp, cSize);

Completed in 73 milliseconds

1 2 3