mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 09:35:09 +02:00
16 lines
307 B
C++
16 lines
307 B
C++
#pragma once
|
|
|
|
#include <cstdlib>
|
|
#include <string_view>
|
|
|
|
namespace hash {
|
|
|
|
// Fairly decent function for hashing strings.
|
|
uint32_t Adler32(const uint8_t *data, size_t len);
|
|
inline uint32_t Adler32(std::string_view data) {
|
|
return Adler32((const uint8_t *)data.data(), data.size());
|
|
}
|
|
|
|
} // namespace hash
|
|
|