2026-05-07 07:44:55 +02:00
|
|
|
namespace PersistentOrderedMap;
|
2026-04-22 15:55:33 +02:00
|
|
|
|
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
|
|
|
|
|
|
public struct IntStrategy : IKeyStrategy<int>
|
|
|
|
|
{
|
|
|
|
|
public bool UsesPrefixes => false;
|
|
|
|
|
public bool IsLossless => true;
|
|
|
|
|
public bool UseBinarySearch => false;
|
|
|
|
|
|
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
|
|
|
public int Compare(int x, int y) => x.CompareTo(y);
|
|
|
|
|
|
|
|
|
|
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
|
|
|
|
public long GetPrefix(int key) => 0; // Unused
|
|
|
|
|
}
|