Home
last modified time | relevance | path

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

/freebsd/sys/contrib/openzfs/module/zstd/lib/decompress/
H A Dzstd_ddict.c130 void* const internalBuffer = ZSTD_malloc(dictSize, ddict->cMem); in ZSTD_initDDict_internal() local
131 ddict->dictBuffer = internalBuffer; in ZSTD_initDDict_internal()
132 ddict->dictContent = internalBuffer; in ZSTD_initDDict_internal()
133 if (!internalBuffer) return ERROR(memory_allocation); in ZSTD_initDDict_internal()
134 memcpy(internalBuffer, dict, dictSize); in ZSTD_initDDict_internal()
/freebsd/sys/contrib/zstd/lib/decompress/
H A Dzstd_ddict.c130 void* const internalBuffer = ZSTD_customMalloc(dictSize, ddict->cMem); in ZSTD_initDDict_internal() local
131 ddict->dictBuffer = internalBuffer; in ZSTD_initDDict_internal()
132 ddict->dictContent = internalBuffer; in ZSTD_initDDict_internal()
133 if (!internalBuffer) return ERROR(memory_allocation); in ZSTD_initDDict_internal()
134 ZSTD_memcpy(internalBuffer, dict, dictSize); in ZSTD_initDDict_internal()
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_compress.c3364 …void *internalBuffer = ZSTD_cwksp_reserve_object(&cdict->workspace, ZSTD_cwksp_align(dictSize, siz… in ZSTD_initCDict_internal() local
3365 RETURN_ERROR_IF(!internalBuffer, memory_allocation, "NULL pointer!"); in ZSTD_initCDict_internal()
3366 cdict->dictContent = internalBuffer; in ZSTD_initCDict_internal()
3367 memcpy(internalBuffer, dictBuffer, dictSize); in ZSTD_initCDict_internal()
/freebsd/sys/contrib/zstd/lib/compress/
H A Dzstd_compress.c4802 …void *internalBuffer = ZSTD_cwksp_reserve_object(&cdict->workspace, ZSTD_cwksp_align(dictSize, siz… in ZSTD_initCDict_internal() local
4803 RETURN_ERROR_IF(!internalBuffer, memory_allocation, "NULL pointer!"); in ZSTD_initCDict_internal()
4804 cdict->dictContent = internalBuffer; in ZSTD_initCDict_internal()
4805 ZSTD_memcpy(internalBuffer, dictBuffer, dictSize); in ZSTD_initCDict_internal()