/* ZSTD_getDictID_fromDict() : Provides the dictID stored within dictionary. if  */
unsigned ZSTD_getDictID_fromDict(const void *dict, size_t dictSize)
/* ZSTD_getDictID_fromDict() : Provides the dictID stored within dictionary. if  */
unsigned ZSTD_getDictID_fromDict(const void *dict, size_t dictSize)
{
	if (dictSize < 8)
		return 0;
	if (ZSTD_readLE32(dict) != ZSTD_DICT_MAGIC)
		return 0;
	return ZSTD_readLE32((const char *)dict + 4);
}