1#ifndef ZSERIO_HASH_CODE_UTIL_H_INC
2#define ZSERIO_HASH_CODE_UTIL_H_INC
21static const uint32_t HASH_PRIME_NUMBER = 37;
23static const uint32_t HASH_SEED = 23;
46inline typename std::enable_if<std::is_integral<T>::value && (
sizeof(T) <= 4),
uint32_t>::type
calcHashCode(
115template <BitSize BIT_SIZE,
bool IS_SIGNED>
130template <
typename VALUE_TYPE>
144template <
typename VALUE_TYPE, detail::VarIntType VAR_TYPE>
158template <
typename VALUE_TYPE, detail::FloatType FLOAT_TYPE>
174template <
typename ALLOC>
228template <
typename OBJECT>
229inline std::enable_if_t<!std::is_enum_v<OBJECT> && !is_bitmask_v<OBJECT> && !std::is_integral_v<OBJECT>,
248 for (
auto byte :
bytes)
264template <
typename ARRAY_ELEMENT,
typename ALLOC>
uint64_t convertDoubleToUInt64(double float64)
uint32_t convertFloatToUInt32(float float32)
uint32_t calcHashCodeFirstTerm(uint32_t seedValue)
uint32_t calcHashCode(uint32_t seedValue, const ArrayView< T, ARRAY_TRAITS > &array)