Lines Matching refs:workspace
66 ZSTD_cwksp workspace; member
103 ZSTD_CCtx* ZSTD_initStaticCCtx(void* workspace, size_t workspaceSize) in ZSTD_initStaticCCtx() argument
108 if ((size_t)workspace & 7) return NULL; /* must be 8-aligned */ in ZSTD_initStaticCCtx()
109 ZSTD_cwksp_init(&ws, workspace, workspaceSize, ZSTD_cwksp_static_alloc); in ZSTD_initStaticCCtx()
115 ZSTD_cwksp_move(&cctx->workspace, &ws); in ZSTD_initStaticCCtx()
119 …if (!ZSTD_cwksp_check_available(&cctx->workspace, ENTROPY_WORKSPACE_SIZE + 2 * sizeof(ZSTD_compres… in ZSTD_initStaticCCtx()
120 …CBlock = (ZSTD_compressedBlockState_t*)ZSTD_cwksp_reserve_object(&cctx->workspace, sizeof(ZSTD_com… in ZSTD_initStaticCCtx()
121 …CBlock = (ZSTD_compressedBlockState_t*)ZSTD_cwksp_reserve_object(&cctx->workspace, sizeof(ZSTD_com… in ZSTD_initStaticCCtx()
122 …cctx->entropyWorkspace = (U32*)ZSTD_cwksp_reserve_object(&cctx->workspace, ENTROPY_WORKSPACE_SIZE); in ZSTD_initStaticCCtx()
151 ZSTD_cwksp_free(&cctx->workspace, cctx->customMem); in ZSTD_freeCCtxContent()
160 int cctxInWorkspace = ZSTD_cwksp_owns_buffer(&cctx->workspace, cctx); in ZSTD_freeCCtx()
181 return (cctx->workspace.workspace == cctx ? 0 : sizeof(*cctx)) in ZSTD_sizeof_CCtx()
182 + ZSTD_cwksp_sizeof(&cctx->workspace) in ZSTD_sizeof_CCtx()
1564 ZSTD_cwksp* const ws = &zc->workspace; in ZSTD_resetCCtx_internal()
1845 ZSTD_cwksp_mark_tables_dirty(&cctx->workspace); in ZSTD_resetCCtx_byCopyingCDict()
1866 ZSTD_cwksp_mark_tables_clean(&cctx->workspace); in ZSTD_resetCCtx_byCopyingCDict()
1938 ZSTD_cwksp_mark_tables_dirty(&dstCCtx->workspace); in ZSTD_copyCCtx_internal()
1957 ZSTD_cwksp_mark_tables_clean(&dstCCtx->workspace); in ZSTD_copyCCtx_internal()
2815 ms, &cctx->workspace, &cctx->appliedParams, ip, ip + blockSize); in ZSTD_compress_frameChunk()
2996 ms, &cctx->workspace, &cctx->appliedParams, in ZSTD_compressContinue_internal()
3140 size_t ZSTD_loadCEntropy(ZSTD_compressedBlockState_t* bs, void* workspace, in ZSTD_loadCEntropy() argument
3173 workspace, HUF_WORKSPACE_SIZE)), in ZSTD_loadCEntropy()
3187 workspace, HUF_WORKSPACE_SIZE)), in ZSTD_loadCEntropy()
3201 workspace, HUF_WORKSPACE_SIZE)), in ZSTD_loadCEntropy()
3247 void* workspace) in ZSTD_loadZstdDictionary() argument
3259 eSize = ZSTD_loadCEntropy(bs, workspace, dict, dictSize); in ZSTD_loadZstdDictionary()
3282 void* workspace) in ZSTD_compress_insertDictionary() argument
3308 bs, ms, ws, params, dict, dictSize, dtlm, workspace); in ZSTD_compress_insertDictionary()
3343 &cctx->ldmState, &cctx->workspace, &cctx->appliedParams, cdict->dictContent, in ZSTD_compressBegin_internal()
3348 &cctx->ldmState, &cctx->workspace, &cctx->appliedParams, dict, dictSize, in ZSTD_compressBegin_internal()
3580 return (cdict->workspace.workspace == cdict ? 0 : sizeof(*cdict)) in ZSTD_sizeof_CDict()
3581 + ZSTD_cwksp_sizeof(&cdict->workspace); in ZSTD_sizeof_CDict()
3601 …void *internalBuffer = ZSTD_cwksp_reserve_object(&cdict->workspace, ZSTD_cwksp_align(dictSize, siz… in ZSTD_initCDict_internal()
3609 … cdict->entropyWorkspace = (U32*)ZSTD_cwksp_reserve_object(&cdict->workspace, HUF_WORKSPACE_SIZE); in ZSTD_initCDict_internal()
3616 &cdict->workspace, in ZSTD_initCDict_internal()
3627 &cdict->cBlockState, &cdict->matchState, NULL, &cdict->workspace, in ZSTD_initCDict_internal()
3651 void* const workspace = ZSTD_customMalloc(workspaceSize, customMem); in ZSTD_createCDict_advanced_internal() local
3655 if (!workspace) { in ZSTD_createCDict_advanced_internal()
3656 ZSTD_customFree(workspace, customMem); in ZSTD_createCDict_advanced_internal()
3660 ZSTD_cwksp_init(&ws, workspace, workspaceSize, ZSTD_cwksp_dynamic_alloc); in ZSTD_createCDict_advanced_internal()
3664 ZSTD_cwksp_move(&cdict->workspace, &ws); in ZSTD_createCDict_advanced_internal()
3762 int cdictInWorkspace = ZSTD_cwksp_owns_buffer(&cdict->workspace, cdict); in ZSTD_freeCDict()
3763 ZSTD_cwksp_free(&cdict->workspace, cMem); in ZSTD_freeCDict()
3785 void* workspace, size_t workspaceSize, in ZSTD_initStaticCDict() argument
3800 if ((size_t)workspace & 7) return NULL; /* 8-aligned */ in ZSTD_initStaticCDict()
3804 ZSTD_cwksp_init(&ws, workspace, workspaceSize, ZSTD_cwksp_static_alloc); in ZSTD_initStaticCDict()
3807 ZSTD_cwksp_move(&cdict->workspace, &ws); in ZSTD_initStaticCDict()
3927 ZSTD_CStream* ZSTD_initStaticCStream(void *workspace, size_t workspaceSize) in ZSTD_initStaticCStream() argument
3929 return ZSTD_initStaticCCtx(workspace, workspaceSize); in ZSTD_initStaticCStream()