Searched refs:neededSpace (Results 1 – 2 of 2) sorted by relevance
704 size_t const neededSpace = entropySpace + blockStateSpace + tokenSpace + in ZSTD_estimateCCtxSize_usingCCtxParams() local708 DEBUGLOG(5, "estimate workSpace : %u", (U32)neededSpace); in ZSTD_estimateCCtxSize_usingCCtxParams()709 return sizeof(ZSTD_CCtx) + neededSpace; in ZSTD_estimateCCtxSize_usingCCtxParams()993 size_t const neededSpace = entropySpace + blockStateSpace + ldmSpace + in ZSTD_resetCCtx_internal() local997 (U32)(neededSpace>>10), (U32)(matchStateSize>>10), (U32)(bufferSpace>>10)); in ZSTD_resetCCtx_internal()1000 if (zc->workSpaceSize < neededSpace) { /* too small : resize */ in ZSTD_resetCCtx_internal()1003 (unsigned)(neededSpace>>10)); in ZSTD_resetCCtx_internal()1009 zc->workSpace = ZSTD_malloc(neededSpace, zc->customMem); in ZSTD_resetCCtx_internal()1011 zc->workSpaceSize = neededSpace; in ZSTD_resetCCtx_internal()
2438 size_t const neededSpace = in ZSTD_initStaticDDict() local2444 if (workspaceSize < neededSpace) return NULL; in ZSTD_initStaticDDict()