1 // Copyright 2019 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "base/hash/legacy_hash.h" 6 7 #include "base/third_party/cityhash_v103/src/city_v103.h" 8 9 namespace base { 10 namespace legacy { 11 CityHash64(base::span<const uint8_t> data)12uint64_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 CityHash64WithSeed(base::span<const uint8_t> data,uint64_t seed)17uint64_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