| 6 |
| 7 | #include "base/third_party/cityhash_v103/src/city_v103.h" |
| 8 |
| 9 | namespace base { |
| 10 | namespace legacy { |
| 11 |
| 12 | uint64_t CityHash64(base::span<const uint8_t> data) { |
| 13 | return internal::cityhash_v103::CityHash64( |
| 14 | reinterpret_cast<const char*>(data.data()), data.size()); |
| 15 | } |
| 16 |
| 17 | uint64_t CityHash64WithSeed(base::span<const uint8_t> data, uint64_t seed) { |
| 18 | return internal::cityhash_v103::CityHash64WithSeed( |
| 19 | reinterpret_cast<const char*>(data.data()), data.size(), seed); |
| 20 | } |
| 21 |
| 22 | } // namespace legacy |
| 23 | } // namespace base |
| 24 |