Lines Matching refs:cctx
227 ZSTD_CStream *cctx; member
1203 ZSTD_CStream * const cctx = hctx->u.cctx = ZSTD_createCStream(); in stream_zstd_init() local
1204 if (NULL == cctx) return -1; in stream_zstd_init()
1214 ZSTD_CCtx_setParameter(cctx, ZSTD_c_compressionLevel, level); in stream_zstd_init()
1216 ZSTD_initCStream(cctx, level); in stream_zstd_init()
1221 ZSTD_CCtx_setParameter(cctx, ZSTD_c_strategy, in stream_zstd_init()
1224 ZSTD_CCtx_setParameter(cctx, ZSTD_c_windowLog, in stream_zstd_init()
1231 ZSTD_CCtx_setParameter(cctx, ZSTD_c_strategy, level); in stream_zstd_init()
1233 ZSTD_initCStream(cctx, level); in stream_zstd_init()
1240 ZSTD_CStream * const cctx = hctx->u.cctx; in stream_zstd_compress() local
1249 const size_t rv = ZSTD_compressStream2(cctx,&zob,&zib,ZSTD_e_continue); in stream_zstd_compress()
1251 const size_t rv = ZSTD_compressStream(cctx, &zob, &zib); in stream_zstd_compress()
1265 ZSTD_CStream * const cctx = hctx->u.cctx; in stream_zstd_flush() local
1276 rv = ZSTD_compressStream2(cctx, &zob, &zib, endOp); in stream_zstd_flush()
1279 ? ZSTD_endStream(cctx, &zob) in stream_zstd_flush()
1280 : ZSTD_flushStream(cctx, &zob); in stream_zstd_flush()
1292 ZSTD_CStream * const cctx = hctx->u.cctx; in stream_zstd_end() local
1293 ZSTD_freeCStream(cctx); in stream_zstd_end()