! * \brief wrapper of the xxHash algorithm */
| 44 | * \brief wrapper of the xxHash algorithm |
| 45 | */ |
| 46 | class XXHash { |
| 47 | long long m_state[11]; |
| 48 | |
| 49 | public: |
| 50 | MGE_WIN_DECLSPEC_FUC XXHash(); |
| 51 | MGE_WIN_DECLSPEC_FUC void reset(); |
| 52 | |
| 53 | //! update internal state, and return *this |
| 54 | MGE_WIN_DECLSPEC_FUC XXHash& update(const void* data, size_t len); |
| 55 | |
| 56 | //! get hash value, guaranteed to be non-zero |
| 57 | MGE_WIN_DECLSPEC_FUC uint64_t digest() const; |
| 58 | }; |
| 59 | |
| 60 | /*! |
| 61 | * \brief hash for enum class |
no outgoing calls
no test coverage detected