legacy_hash.h 705 B

12345678910111213141516171819202122232425
  1. // Copyright 2019 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_HASH_LEGACY_HASH_H_
  5. #define BASE_HASH_LEGACY_HASH_H_
  6. #include <stdint.h>
  7. #include "base/base_export.h"
  8. #include "base/containers/span.h"
  9. namespace base {
  10. namespace legacy {
  11. // Implementation is fixed at CityHash v1.0.3.
  12. // Unchanging forever: yes
  13. BASE_EXPORT uint64_t CityHash64(base::span<const uint8_t> data);
  14. BASE_EXPORT uint64_t CityHash64WithSeed(base::span<const uint8_t> data,
  15. uint64_t seed);
  16. } // namespace legacy
  17. } // namespace base
  18. #endif // BASE_HASH_LEGACY_HASH_H_