Home
last modified time | relevance | path

Searched refs:cdict (Results 1 – 12 of 12) sorted by relevance

/freebsd-13-stable/contrib/lib9p/pytest/
HDsequencer.py88 def pack(self, vdict, cdict, val): argument
90 return b''.join(self.apack(vdict, cdict, val))
93 def apack(self, vdict, cdict, val): argument
97 def unpack(self, vdict, cdict, bstring, offset, noerror=False): argument
218 def apack(self, vdict, cdict, val): argument
250 def unpack(self, vdict, cdict, bstring, offset, noerror=False): argument
345 def apack(self, vdict, cdict, val): argument
351 return self.sequence.apack(val, cdict)
353 def unpack(self, vdict, cdict, bstring, offset, noerror=False): argument
361 offset = self.sequence.unpack_from(obj, cdict, bstring, offset, noerror)
[all …]
/freebsd-13-stable/sys/contrib/zstd/lib/compress/
HDzstd_compress.c136 ZSTD_freeCDict(cctx->localDict.cdict); in ZSTD_clearAllDicts()
139 cctx->cdict = NULL; in ZSTD_clearAllDicts()
145 size_t const cdictSize = ZSTD_sizeof_CDict(dict.cdict); in ZSTD_sizeof_localDict()
936 RETURN_ERROR_IF(cctx->cdict, stage_wrong, in ZSTD_CCtx_setParametersUsingCCtxParams()
972 assert(dl->cdict == NULL); in ZSTD_initLocalDict()
976 if (dl->cdict != NULL) { in ZSTD_initLocalDict()
977 assert(cctx->cdict == dl->cdict); in ZSTD_initLocalDict()
982 assert(cctx->cdict == NULL); in ZSTD_initLocalDict()
985 dl->cdict = ZSTD_createCDict_advanced2( in ZSTD_initLocalDict()
992 RETURN_ERROR_IF(!dl->cdict, memory_allocation, "ZSTD_createCDict_advanced failed"); in ZSTD_initLocalDict()
[all …]
HDzstdmt_compress.h71 const ZSTD_CDict* cdict,
HDzstdmt_compress.c647 const ZSTD_CDict* cdict; /* set by mtctx, then read by worker => no barrier */ member
689 if (job->cdict) { in ZSTDMT_compressionJob()
690 …egin_advanced_internal(cctx, NULL, 0, ZSTD_dct_auto, ZSTD_dtlm_fast, job->cdict, &jobParams, job->… in ZSTDMT_compressionJob()
830 const ZSTD_CDict* cdict; member
1192 const ZSTD_CDict* cdict, ZSTD_CCtx_params params, in ZSTDMT_initCStream_internal() argument
1200 assert(!((dict) && (cdict))); /* either dict or cdict, not both */ in ZSTDMT_initCStream_internal()
1224 mtctx->cdict = mtctx->cdictLocal; in ZSTDMT_initCStream_internal()
1229 mtctx->cdict = cdict; in ZSTDMT_initCStream_internal()
1343 mtctx->jobs[jobID].cdict = mtctx->nextJobID==0 ? mtctx->cdict : NULL; in ZSTDMT_createCompressionJob()
HDzstd_compress_internal.h62 ZSTD_CDict* cdict; member
317 const ZSTD_CDict* cdict; member
1151 const ZSTD_CDict* cdict,
1158 ZSTD_compressionParameters ZSTD_getCParamsFromCDict(const ZSTD_CDict* cdict);
1166 const ZSTD_CDict* cdict,
/freebsd-13-stable/sys/contrib/zstd/examples/
HDdictionary_compression.c23 ZSTD_CDict* const cdict = ZSTD_createCDict(dictBuffer, dictSize, cLevel); in createCDict_orDie() local
24 CHECK(cdict != NULL, "ZSTD_createCDict() failed!"); in createCDict_orDie()
26 return cdict; in createCDict_orDie()
30 static void compress(const char* fname, const char* oname, const ZSTD_CDict* cdict) in compress() argument
45 size_t const cSize = ZSTD_compress_usingCDict(cctx, cBuff, cBuffSize, fBuff, fSize, cdict); in compress()
/freebsd-13-stable/contrib/openbsm/bin/auditd/
HDauditd_darwin.c239 launch_data_t msg, msd, ld, cdict, to; in lookup_machport() local
244 cdict = launch_msg(msg); in lookup_machport()
245 if (cdict == NULL) { in lookup_machport()
251 if (launch_data_get_type(cdict) == LAUNCH_DATA_ERRNO) { in lookup_machport()
252 errno = launch_data_get_errno(cdict); in lookup_machport()
257 to = launch_data_dict_lookup(cdict, LAUNCH_JOBKEY_TIMEOUT); in lookup_machport()
266 msd = launch_data_dict_lookup(cdict, LAUNCH_JOBKEY_MACHSERVICES); in lookup_machport()
/freebsd-13-stable/sys/contrib/zstd/lib/
HDzstd.h866 const ZSTD_CDict* cdict);
959 ZSTDLIB_API size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict);
1038 ZSTDLIB_API size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict);
1547 ZSTDLIB_API unsigned ZSTD_getDictID_fromCDict(const ZSTD_CDict* cdict);
1589 const ZSTD_CDict* cdict,
2077 ZSTDLIB_API size_t ZSTD_initCStream_usingCDict(ZSTD_CStream* zcs, const ZSTD_CDict* cdict);
2096 const ZSTD_CDict* cdict,
2229 ZSTDLIB_API size_t ZSTD_compressBegin_usingCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); /**< no…
2230 …sBegin_usingCDict_advanced(ZSTD_CCtx* const cctx, const ZSTD_CDict* const cdict, ZSTD_frameParamet…
/freebsd-13-stable/sys/contrib/openzfs/module/zstd/lib/
HDzstd.h867 const ZSTD_CDict* cdict);
960 ZSTDLIB_API size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict);
1039 ZSTDLIB_API size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict);
1472 const ZSTD_CDict* cdict,
1802 ZSTDLIB_API size_t ZSTD_initCStream_usingCDict(ZSTD_CStream* zcs, const ZSTD_CDict* cdict);
1821 const ZSTD_CDict* cdict,
1953 ZSTDLIB_API size_t ZSTD_compressBegin_usingCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); /**< no…
1954 …sBegin_usingCDict_advanced(ZSTD_CCtx* const cctx, const ZSTD_CDict* const cdict, ZSTD_frameParamet…
HDzstd.c3927 const ZSTD_CDict* cdict);
4020 ZSTDLIB_API size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict);
4099 ZSTDLIB_API size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict);
4532 const ZSTD_CDict* cdict,
4862 ZSTDLIB_API size_t ZSTD_initCStream_usingCDict(ZSTD_CStream* zcs, const ZSTD_CDict* cdict);
4881 const ZSTD_CDict* cdict,
5013 ZSTDLIB_API size_t ZSTD_compressBegin_usingCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); /**< no…
5014 …sBegin_usingCDict_advanced(ZSTD_CCtx* const cctx, const ZSTD_CDict* const cdict, ZSTD_frameParamet…
9835 const ZSTD_CDict* cdict,
9845 const ZSTD_CDict* cdict,
[all …]
/freebsd-13-stable/sys/contrib/zstd/lib/dictBuilder/
HDcover.c795 ZSTD_CDict *cdict; in COVER_checkTotalCompressedSize() local
812 cdict = ZSTD_createCDict(dict, dictBufferCapacity, in COVER_checkTotalCompressedSize()
814 if (!dst || !cctx || !cdict) { in COVER_checkTotalCompressedSize()
823 samplesSizes[i], cdict); in COVER_checkTotalCompressedSize()
832 ZSTD_freeCDict(cdict); in COVER_checkTotalCompressedSize()
/freebsd-13-stable/sys/contrib/zstd/zlibWrapper/examples/
HDzwrapbench.c238 …ZSTD_CDict* const cdict = ZSTD_createCDict_advanced(dictBuffer, dictBufferSize, ZSTD_dlm_byRef, ZS… in BMK_benchMem() local
239 if (cdict==NULL) EXM_THROW(1, "ZSTD_createCDict_advanced() allocation failure"); in BMK_benchMem()
249 cdict); in BMK_benchMem()
260 ZSTD_freeCDict(cdict); in BMK_benchMem()