Lines Matching refs:workspaceSize
103 ZSTD_CCtx* ZSTD_initStaticCCtx(void* workspace, size_t workspaceSize) in ZSTD_initStaticCCtx() argument
107 if (workspaceSize <= sizeof(ZSTD_CCtx)) return NULL; /* minimum size */ in ZSTD_initStaticCCtx()
109 ZSTD_cwksp_init(&ws, workspace, workspaceSize, ZSTD_cwksp_static_alloc); in ZSTD_initStaticCCtx()
116 cctx->staticSize = workspaceSize; in ZSTD_initStaticCCtx()
3645 { size_t const workspaceSize = in ZSTD_createCDict_advanced_internal() local
3651 void* const workspace = ZSTD_customMalloc(workspaceSize, customMem); in ZSTD_createCDict_advanced_internal()
3660 ZSTD_cwksp_init(&ws, workspace, workspaceSize, ZSTD_cwksp_dynamic_alloc); in ZSTD_createCDict_advanced_internal()
3785 void* workspace, size_t workspaceSize, in ZSTD_initStaticCDict() argument
3804 ZSTD_cwksp_init(&ws, workspace, workspaceSize, ZSTD_cwksp_static_alloc); in ZSTD_initStaticCDict()
3811 (unsigned)workspaceSize, (unsigned)neededSize, (unsigned)(workspaceSize < neededSize)); in ZSTD_initStaticCDict()
3812 if (workspaceSize < neededSize) return NULL; 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()