| 29 | |
| 30 | template <class T> |
| 31 | inline size_t hash_bytes(const T* const data, const size_t length, const size_t basis = _FNV_offset_basis) noexcept |
| 32 | { |
| 33 | // bitwise hashes the representation of an array |
| 34 | return hash_append( |
| 35 | basis, reinterpret_cast<const unsigned char*>(data), length * sizeof(T)); |
| 36 | } |
| 37 | } |