This commit is contained in:
2025-12-05 16:33:37 +08:00
parent dbbe3303b3
commit 9de88d2db0
163 changed files with 5633 additions and 2293 deletions
@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Class IndexSegment | HiAPI-C# 2025 ">
<meta name="description" content="Represents a segment of indices with a beginning and ending point. Used for defining ranges of data in collections or arrays.">
<meta name="description" content="Represents a segment of indices with a beginning (inclusive) and ending (exclusive&amp;gt; point. Used for defining segment of data in collections or arrays.">
<link rel="icon" href="../img/HiAPI.favicon.ico">
<link rel="stylesheet" href="../public/docfx.min.css">
<link rel="stylesheet" href="../public/main.css">
@@ -97,8 +97,8 @@ Class IndexSegment
<dl><dt>Assembly</dt><dd>HiGeom.dll</dd></dl>
</div>
<div class="markdown summary"><p>Represents a segment of indices with a beginning and ending point.
Used for defining ranges of data in collections or arrays.</p>
<div class="markdown summary"><p>Represents a segment of indices with a beginning (inclusive) and ending (exclusive&gt; point.
Used for defining segment of data in collections or arrays.</p>
</div>
<div class="markdown conceptual"></div>
@@ -772,12 +772,12 @@ Used for defining ranges of data in collections or arrays.</p>
</h3>
<div class="markdown level1 summary"><p>Gets an index segment from a list of data items based on the specified indices.</p>
<div class="markdown level1 summary"><p>Gets an index segment from a list of data items by the specific group index.</p>
</div>
<div class="markdown level1 conceptual"></div>
<div class="codewrapper">
<pre><code class="lang-csharp hljs">public static IndexSegment GetIndexSegment&lt;TData&gt;(IList&lt;TData&gt; steps, int cacheStepIndex, int keyStepIndex, Func&lt;TData, int?&gt; dataToKeyIndexFunc)</code></pre>
<pre><code class="lang-csharp hljs">public static IndexSegment GetIndexSegment&lt;TData&gt;(IList&lt;TData&gt; steps, int startListIndex, int targetGroupIndex, Func&lt;TData, int?&gt; dataToGroupIndexFunc)</code></pre>
</div>
<h4 class="section">Parameters</h4>
@@ -785,14 +785,14 @@ Used for defining ranges of data in collections or arrays.</p>
<dt><code>steps</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;TData&gt;</dt>
<dd><p>The list of data items.</p>
</dd>
<dt><code>cacheStepIndex</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>The cache step index.</p>
<dt><code>startListIndex</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>The start step index for seeking.</p>
</dd>
<dt><code>keyStepIndex</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>The key step index.</p>
<dt><code>targetGroupIndex</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></dt>
<dd><p>The target segment key.</p>
</dd>
<dt><code>dataToKeyIndexFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;TData, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?&gt;</dt>
<dd><p>A function that extracts an index from a data item.</p>
<dt><code>dataToGroupIndexFunc</code> <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-2">Func</a>&lt;TData, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a>?&gt;</dt>
<dd><p>A function that extracts a segmentkey from a data item.</p>
</dd>
</dl>