customMem          75 lib/zstd/compress.c 	ZSTD_customMem customMem;
customMem         109 lib/zstd/compress.c static ZSTD_CCtx *ZSTD_createCCtx_advanced(ZSTD_customMem customMem)
customMem         112 lib/zstd/compress.c 	if (!customMem.customAlloc || !customMem.customFree)
customMem         114 lib/zstd/compress.c 	cctx = (ZSTD_CCtx *)ZSTD_malloc(sizeof(ZSTD_CCtx), customMem);
customMem         118 lib/zstd/compress.c 	cctx->customMem = customMem;
customMem         127 lib/zstd/compress.c 		cctx->workSpace = ZSTD_stackAllocAll(cctx->customMem.opaque, &cctx->workSpaceSize);
customMem         136 lib/zstd/compress.c 	ZSTD_free(cctx->workSpace, cctx->customMem);
customMem         137 lib/zstd/compress.c 	ZSTD_free(cctx, cctx->customMem);
customMem         270 lib/zstd/compress.c 				ZSTD_free(zc->workSpace, zc->customMem);
customMem         271 lib/zstd/compress.c 				zc->workSpace = ZSTD_malloc(neededSpace, zc->customMem);
customMem         353 lib/zstd/compress.c 	memcpy(&dstCCtx->customMem, &srcCCtx->customMem, sizeof(ZSTD_customMem));
customMem        2847 lib/zstd/compress.c static ZSTD_CDict *ZSTD_createCDict_advanced(const void *dictBuffer, size_t dictSize, unsigned byReference, ZSTD_parameters params, ZSTD_customMem customMem)
customMem        2849 lib/zstd/compress.c 	if (!customMem.customAlloc || !customMem.customFree)
customMem        2853 lib/zstd/compress.c 		ZSTD_CDict *const cdict = (ZSTD_CDict *)ZSTD_malloc(sizeof(ZSTD_CDict), customMem);
customMem        2854 lib/zstd/compress.c 		ZSTD_CCtx *const cctx = ZSTD_createCCtx_advanced(customMem);
customMem        2857 lib/zstd/compress.c 			ZSTD_free(cdict, customMem);
customMem        2866 lib/zstd/compress.c 			void *const internalBuffer = ZSTD_malloc(dictSize, customMem);
customMem        2868 lib/zstd/compress.c 				ZSTD_free(cctx, customMem);
customMem        2869 lib/zstd/compress.c 				ZSTD_free(cdict, customMem);
customMem        2880 lib/zstd/compress.c 				ZSTD_free(cdict->dictBuffer, customMem);
customMem        2881 lib/zstd/compress.c 				ZSTD_free(cdict, customMem);
customMem        2904 lib/zstd/compress.c 		ZSTD_customMem const cMem = cdict->refContext->customMem;
customMem        2970 lib/zstd/compress.c 	ZSTD_customMem customMem;
customMem        2982 lib/zstd/compress.c ZSTD_CStream *ZSTD_createCStream_advanced(ZSTD_customMem customMem)
customMem        2986 lib/zstd/compress.c 	if (!customMem.customAlloc || !customMem.customFree)
customMem        2989 lib/zstd/compress.c 	zcs = (ZSTD_CStream *)ZSTD_malloc(sizeof(ZSTD_CStream), customMem);
customMem        2993 lib/zstd/compress.c 	memcpy(&zcs->customMem, &customMem, sizeof(ZSTD_customMem));
customMem        2994 lib/zstd/compress.c 	zcs->cctx = ZSTD_createCCtx_advanced(customMem);
customMem        3007 lib/zstd/compress.c 		ZSTD_customMem const cMem = zcs->customMem;
customMem        3062 lib/zstd/compress.c 			ZSTD_free(zcs->inBuff, zcs->customMem);
customMem        3063 lib/zstd/compress.c 			zcs->inBuff = (char *)ZSTD_malloc(neededInBuffSize, zcs->customMem);
customMem        3071 lib/zstd/compress.c 		ZSTD_free(zcs->outBuff, zcs->customMem);
customMem        3072 lib/zstd/compress.c 		zcs->outBuff = (char *)ZSTD_malloc(zcs->outBuffSize, zcs->customMem);
customMem        3079 lib/zstd/compress.c 		zcs->cdictLocal = ZSTD_createCDict_advanced(dict, dictSize, 0, params, zcs->customMem);
customMem          97 lib/zstd/decompress.c 	ZSTD_customMem customMem;
customMem         126 lib/zstd/decompress.c ZSTD_DCtx *ZSTD_createDCtx_advanced(ZSTD_customMem customMem)
customMem         130 lib/zstd/decompress.c 	if (!customMem.customAlloc || !customMem.customFree)
customMem         133 lib/zstd/decompress.c 	dctx = (ZSTD_DCtx *)ZSTD_malloc(sizeof(ZSTD_DCtx), customMem);
customMem         136 lib/zstd/decompress.c 	memcpy(&dctx->customMem, &customMem, sizeof(customMem));
customMem         151 lib/zstd/decompress.c 	ZSTD_free(dctx, dctx->customMem);
customMem        2040 lib/zstd/decompress.c static ZSTD_DDict *ZSTD_createDDict_advanced(const void *dict, size_t dictSize, unsigned byReference, ZSTD_customMem customMem)
customMem        2042 lib/zstd/decompress.c 	if (!customMem.customAlloc || !customMem.customFree)
customMem        2046 lib/zstd/decompress.c 		ZSTD_DDict *const ddict = (ZSTD_DDict *)ZSTD_malloc(sizeof(ZSTD_DDict), customMem);
customMem        2049 lib/zstd/decompress.c 		ddict->cMem = customMem;
customMem        2055 lib/zstd/decompress.c 			void *const internalBuffer = ZSTD_malloc(dictSize, customMem);
customMem        2177 lib/zstd/decompress.c 	ZSTD_customMem customMem;
customMem        2192 lib/zstd/decompress.c static ZSTD_DStream *ZSTD_createDStream_advanced(ZSTD_customMem customMem)
customMem        2196 lib/zstd/decompress.c 	if (!customMem.customAlloc || !customMem.customFree)
customMem        2199 lib/zstd/decompress.c 	zds = (ZSTD_DStream *)ZSTD_malloc(sizeof(ZSTD_DStream), customMem);
customMem        2203 lib/zstd/decompress.c 	memcpy(&zds->customMem, &customMem, sizeof(ZSTD_customMem));
customMem        2204 lib/zstd/decompress.c 	zds->dctx = ZSTD_createDCtx_advanced(customMem);
customMem        2235 lib/zstd/decompress.c 		zds->inBuff = (char *)ZSTD_malloc(blockSize, zds->customMem);
customMem        2237 lib/zstd/decompress.c 		zds->outBuff = (char *)ZSTD_malloc(neededOutSize, zds->customMem);
customMem        2261 lib/zstd/decompress.c 		ZSTD_customMem const cMem = zds->customMem;
customMem          69 lib/zstd/zstd_common.c void *ZSTD_malloc(size_t size, ZSTD_customMem customMem) { return customMem.customAlloc(customMem.opaque, size); }
customMem          71 lib/zstd/zstd_common.c void ZSTD_free(void *ptr, ZSTD_customMem customMem)
customMem          74 lib/zstd/zstd_common.c 		customMem.customFree(customMem.opaque, ptr);
customMem         225 lib/zstd/zstd_internal.h void *ZSTD_malloc(size_t size, ZSTD_customMem customMem);
customMem         226 lib/zstd/zstd_internal.h void ZSTD_free(void *ptr, ZSTD_customMem customMem);