This commit is contained in:
2026-06-15 18:18:16 +08:00
parent 97c9fba14e
commit 2b9f134e5f
4164 changed files with 386922 additions and 79 deletions

View File

@@ -0,0 +1,24 @@
using System.Collections.Generic;
namespace Best.HTTP.Shared.Databases.Indexing.Comparers
{
public sealed class ByteArrayComparer : IComparer<byte[]>
{
public int Compare(byte[] x, byte[] y)
{
int result = x.Length.CompareTo(y.Length);
if (result != 0)
return result;
for (int i = 0; i < x.Length; ++i)
{
result = x[i].CompareTo(y[i]);
if (result != 0)
return result;
}
return 0;
}
}
}