Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ISortableDataStructureAccessor.cs « Sorting « Common « tools « coreclr « src - github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c2ec9f24b84f96e3ac8c1953ba70b0d2fe4fb0cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace ILCompiler
{
    internal interface ISortableDataStructureAccessor<T, TDataStructure>
    {
        T GetElement(TDataStructure dataStructure, int i);
        void SetElement(TDataStructure dataStructure, int i, T value);
        void SwapElements(TDataStructure dataStructure, int i, int i2);
        void Copy(TDataStructure source, int sourceIndex, T[] target, int destIndex, int length);
        void Copy(T[] source, int sourceIndex, TDataStructure target, int destIndex, int length);
        int GetLength(TDataStructure dataStructure);
    }
}