Lines Matching refs:cctx
193 ZSTD_CCtx* const cctx = ZSTD_createCCtx_advanced(cMem); in FUZ_mallocTests() local
194 … CHECK_Z( ZSTD_compressCCtx(cctx, outBuffer, outSize, inBuffer, inSize, compressionLevel) ); in FUZ_mallocTests()
195 ZSTD_freeCCtx(cctx); in FUZ_mallocTests()
225 ZSTD_CCtx* const cctx = ZSTD_createCCtx_advanced(cMem); in FUZ_mallocTests() local
228 … CHECK_Z( ZSTD_CCtx_setParameter(cctx, ZSTD_p_compressionLevel, (U32)compressionLevel) ); in FUZ_mallocTests()
229 CHECK_Z( ZSTD_CCtx_setParameter(cctx, ZSTD_p_nbWorkers, nbThreads) ); in FUZ_mallocTests()
230 while ( ZSTD_compress_generic(cctx, &out, &in, ZSTD_e_end) ) {} in FUZ_mallocTests()
231 ZSTD_freeCCtx(cctx); in FUZ_mallocTests()
245 ZSTD_CCtx* const cctx = ZSTD_createCCtx_advanced(cMem); in FUZ_mallocTests() local
248 … CHECK_Z( ZSTD_CCtx_setParameter(cctx, ZSTD_p_compressionLevel, (U32)compressionLevel) ); in FUZ_mallocTests()
249 CHECK_Z( ZSTD_CCtx_setParameter(cctx, ZSTD_p_nbWorkers, nbThreads) ); in FUZ_mallocTests()
250 CHECK_Z( ZSTD_compress_generic(cctx, &out, &in, ZSTD_e_continue) ); in FUZ_mallocTests()
251 while ( ZSTD_compress_generic(cctx, &out, &in, ZSTD_e_end) ) {} in FUZ_mallocTests()
252 ZSTD_freeCCtx(cctx); in FUZ_mallocTests()
308 { ZSTD_CCtx* cctx = ZSTD_createCCtx(); in basicUnitTests() local
309 if (cctx==NULL) goto _output_error; in basicUnitTests()
310 CHECKPLUS(r, ZSTD_compressCCtx(cctx, in basicUnitTests()
317 { size_t const cctxSize = ZSTD_sizeof_CCtx(cctx); in basicUnitTests()
320 ZSTD_freeCCtx(cctx); in basicUnitTests()
372 { ZSTD_CCtx* cctx = ZSTD_createCCtx(); in basicUnitTests() local
373 … size_t const r = ZSTD_compressCCtx(cctx, compressedBuffer, compressedBufferSize, NULL, 0, 19); in basicUnitTests()
375 if (ZSTD_sizeof_CCtx(cctx) > (1U << 20)) goto _output_error; in basicUnitTests()
376 ZSTD_freeCCtx(cctx); in basicUnitTests()
381 { ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in basicUnitTests() local
384 CHECK_Z( ZSTD_compressBegin_advanced(cctx, NULL, 0, params, 1 /*pledgedSrcSize*/) ); in basicUnitTests()
385 …CHECK_Z( ZSTD_compressEnd(cctx, compressedBuffer, compressedBufferSize, CNBuffer, 1) ); /* creates… in basicUnitTests()
387 …CHECK_Z( ZSTD_compressBegin_advanced(cctx, NULL, 0, params, ZSTD_CONTENTSIZE_UNKNOWN) ); /* re-us… in basicUnitTests()
390 CHECK_Z( ZSTD_compressEnd(cctx, compressedBuffer, outSize, CNBuffer, inSize) ); in basicUnitTests()
393 ZSTD_freeCCtx(cctx); in basicUnitTests()
398 { ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in basicUnitTests() local
405 …CHECK_Z( ZSTD_compressBegin_advanced(cctx, NULL, 0, params, ZSTD_CONTENTSIZE_UNKNOWN) ); /* re-us… in basicUnitTests()
406 … CHECK_Z( ZSTD_compressEnd(cctx, compressedBuffer, compressedBufferSize, CNBuffer, CNBuffSize) ); in basicUnitTests()
408 ZSTD_freeCCtx(cctx); in basicUnitTests()
682 { ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in basicUnitTests() local
721 cSize = ZSTD_compress_usingDict(cctx, compressedBuffer, compressedBufferSize, in basicUnitTests()
759 cSize = ZSTD_compress_usingCDict(cctx, compressedBuffer, compressedBufferSize, in basicUnitTests()
797 cSize = ZSTD_compress_usingCDict(cctx, in basicUnitTests()
812 cSize = ZSTD_compress_usingCDict_advanced(cctx, compressedBuffer, compressedBufferSize, in basicUnitTests()
836 cSize = ZSTD_compress_advanced(cctx, compressedBuffer, compressedBufferSize, in basicUnitTests()
881 cctx, (const char*)dictBuffer+2, dictSize-2, ZSTD_dlm_byRef, ZSTD_dct_auto); in basicUnitTests()
891 … cctx, (const char*)dictBuffer+2, dictSize-2, ZSTD_dlm_byRef, ZSTD_dct_rawContent); in basicUnitTests()
930 cSize = ZSTD_compress_usingCDict(cctx, compressedBuffer, compressedBufferSize, in basicUnitTests()
940 ZSTD_freeCCtx(cctx); in basicUnitTests()
946 { ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in basicUnitTests() local
993 ZSTD_freeCCtx(cctx); in basicUnitTests()
1013 { ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in basicUnitTests() local
1018 CHECK( ZSTD_compressBegin_advanced(cctx, NULL, 0, params, wrongSrcSize) ); in basicUnitTests()
1019 … { size_t const result = ZSTD_compressEnd(cctx, decodedBuffer, CNBuffSize, CNBuffer, srcSize); in basicUnitTests()
1024 ZSTD_freeCCtx(cctx); in basicUnitTests()
1031 { ZSTD_CCtx* cctx = ZSTD_createCCtx(); in basicUnitTests() local
1033 CHECK( ZSTD_CCtx_setParameter(cctx, ZSTD_p_compressionLevel, 2) ); in basicUnitTests()
1034 CHECK( ZSTD_CCtx_setParameter(cctx, ZSTD_p_enableLongDistanceMatching, 1) ); in basicUnitTests()
1035 CHECK( ZSTD_CCtx_setParameter(cctx, ZSTD_p_windowLog, 18) ); in basicUnitTests()
1038 size_t const result = ZSTD_compress_generic(cctx, &out, &in, ZSTD_e_end); in basicUnitTests()
1045 ZSTD_freeCCtx(cctx); in basicUnitTests()
1048 { ZSTD_CCtx* cctx = ZSTD_createCCtx(); in basicUnitTests() local
1050 CHECK( ZSTD_CCtx_setParameter(cctx, ZSTD_p_windowLog, 18) ); in basicUnitTests()
1051 CHECK( ZSTD_CCtx_setParameter(cctx, ZSTD_p_enableLongDistanceMatching, 1) ); in basicUnitTests()
1052 CHECK( ZSTD_CCtx_setParameter(cctx, ZSTD_p_compressionLevel, 2) ); in basicUnitTests()
1055 size_t const result = ZSTD_compress_generic(cctx, &out, &in, ZSTD_e_end); in basicUnitTests()
1062 ZSTD_freeCCtx(cctx); in basicUnitTests()
1067 { ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in basicUnitTests() local
1072 CHECK( ZSTD_CCtx_setParameter(cctx, ZSTD_p_format, ZSTD_f_zstd1_magicless) ); in basicUnitTests()
1075 size_t const result = ZSTD_compress_generic(cctx, &out, &in, ZSTD_e_end); in basicUnitTests()
1100 ZSTD_freeCCtx(cctx); in basicUnitTests()
1104 { ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in basicUnitTests() local
1111 CHECK( ZSTD_compressBegin(cctx, 5) ); in basicUnitTests()
1112 CHECK( ZSTD_getBlockSize(cctx) >= blockSize); in basicUnitTests()
1113 …cSize = ZSTD_compressBlock(cctx, compressedBuffer, ZSTD_compressBound(blockSize), CNBuffer, blockS… in basicUnitTests()
1125 CHECK( ZSTD_compressBegin_usingDict(cctx, CNBuffer, dictSize, 5) ); in basicUnitTests()
1126 …cSize = ZSTD_compressBlock(cctx, compressedBuffer, ZSTD_compressBound(blockSize), (char*)CNBuffer+… in basicUnitTests()
1128 …cSize2 = ZSTD_compressBlock(cctx, (char*)compressedBuffer+cSize, ZSTD_compressBound(blockSize), (c… in basicUnitTests()
1131 …cSize2 = ZSTD_compressBlock(cctx, (char*)compressedBuffer+cSize+blockSize, ZSTD_compressBound(bloc… in basicUnitTests()
1145 ZSTD_freeCCtx(cctx); in basicUnitTests()
1236 ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in basicUnitTests() local
1237 if (!outputBuffer || !cctx) goto _output_error; in basicUnitTests()
1238 …CHECK(ZSTD_compress_usingDict(cctx, outputBuffer, outputSize, CNBuffer, inputSize, dictBuffer, dic… in basicUnitTests()
1240 ZSTD_freeCCtx(cctx); in basicUnitTests()
1270 ZSTD_CCtx* const cctx = ZSTD_createCCtx(); in basicUnitTests() local
1276 …CHECK_Z(ZSTD_compress_usingCDict(cctx, compressedBuffer, compressedBufferSize, CNBuffer, size, lgC… in basicUnitTests()
1278 …CHECK_Z(ZSTD_compress_usingCDict(cctx, compressedBuffer, compressedBufferSize, CNBuffer, size, smC… in basicUnitTests()
1285 ZSTD_freeCCtx(cctx); in basicUnitTests()