Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hrydgard
GitHub Repository: hrydgard/ppsspp
Path: blob/master/Common/Data/Hash/Hash.h
5654 views
1
#pragma once
2
3
#include <cstdlib>
4
#include <string_view>
5
6
namespace hash {
7
8
// Fairly decent function for hashing strings.
9
uint32_t Adler32(const uint8_t *data, size_t len);
10
inline uint32_t Adler32(std::string_view data) {
11
return Adler32((const uint8_t *)data.data(), data.size());
12
}
13
14
} // namespace hash
15
16
17