You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
// Licensed under the MIT license.
|
|
|
|
|
|
|
|
|
|
namespace FASTER.core
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Key interface
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <typeparam name="T"></typeparam>
|
|
|
|
|
public interface IFasterEqualityComparer<T>
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get 64-bit hash code
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
long GetHashCode64(ref T k);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Equality comparison
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="k1">Left side</param>
|
|
|
|
|
/// <param name="k2">Right side</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
bool Equals(ref T k1, ref T k2);
|
|
|
|
|
}
|
|
|
|
|
}
|