Home
last modified time | relevance | path

Searched refs:internalBuffer (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/lib/zstd/decompress/
H A Dzstd_ddict.c127 void* const internalBuffer = ZSTD_customMalloc(dictSize, ddict->cMem); in ZSTD_initDDict_internal() local
128 ddict->dictBuffer = internalBuffer; in ZSTD_initDDict_internal()
129 ddict->dictContent = internalBuffer; in ZSTD_initDDict_internal()
130 if (!internalBuffer) return ERROR(memory_allocation); in ZSTD_initDDict_internal()
131 ZSTD_memcpy(internalBuffer, dict, dictSize); in ZSTD_initDDict_internal()
/openbmc/linux/lib/zstd/compress/
H A Dzstd_compress.c4683 …void *internalBuffer = ZSTD_cwksp_reserve_object(&cdict->workspace, ZSTD_cwksp_align(dictSize, siz… in ZSTD_initCDict_internal() local
4684 RETURN_ERROR_IF(!internalBuffer, memory_allocation, "NULL pointer!"); in ZSTD_initCDict_internal()
4685 cdict->dictContent = internalBuffer; in ZSTD_initCDict_internal()
4686 ZSTD_memcpy(internalBuffer, dictBuffer, dictSize); in ZSTD_initCDict_internal()