1 write to Length
Microsoft.CodeAnalysis.Collections.Package (1)
Internal\SegmentedArraySegment`1.cs (1)
17
Length
= length;
50 references to Length
Microsoft.CodeAnalysis.Collections.Package (50)
Internal\ArraySortHelper.cs (46)
134
if (keys.
Length
> 1)
136
IntroSort(keys, 2 * (SegmentedArraySortUtils.Log2((uint)keys.
Length
) + 1), comparer!);
145
Debug.Assert(keys.
Length
> 0);
149
int partitionSize = keys.
Length
;
190
Debug.Assert(keys.
Length
>= SegmentedArrayHelper.IntrosortSizeThreshold);
193
int hi = keys.
Length
- 1;
236
Debug.Assert(keys.
Length
> 0);
238
int n = keys.
Length
;
276
for (int i = 0; i < keys.
Length
- 1; i++)
301
if (keys.
Length
> 1)
314
if (nanLeft == keys.
Length
)
321
IntroSort(keys, 2 * (SegmentedArraySortUtils.Log2((uint)keys.
Length
) + 1));
425
Debug.Assert(keys.
Length
> 0);
428
int partitionSize = keys.
Length
;
472
Debug.Assert(keys.
Length
>= SegmentedArrayHelper.IntrosortSizeThreshold);
476
int lastIndex = keys.
Length
- 1;
477
int middleIndex = (keys.
Length
- 1) >> 1;
483
int nextToLastIndex = keys.
Length
- 2;
535
Debug.Assert(keys.
Length
> 0);
537
int n = keys.
Length
;
573
for (int i = 0; i < keys.
Length
- 1; i++)
692
Debug.Assert(0 <= i && i < keys.
Length
&& i < values.Length);
693
Debug.Assert(0 <= j && j < keys.
Length
&& j < values.Length);
725
Debug.Assert(keys.
Length
== values.Length);
727
if (keys.
Length
> 1)
729
IntroSort(keys, values, 2 * (SegmentedArraySortUtils.Log2((uint)keys.
Length
) + 1), comparer!);
735
Debug.Assert(keys.
Length
> 0);
736
Debug.Assert(values.Length == keys.
Length
);
740
int partitionSize = keys.
Length
;
781
Debug.Assert(keys.
Length
>= SegmentedArrayHelper.IntrosortSizeThreshold);
784
int hi = keys.
Length
- 1;
827
Debug.Assert(keys.
Length
> 0);
829
int n = keys.
Length
;
873
for (int i = 0; i < keys.
Length
- 1; i++)
903
if (keys.
Length
> 1)
916
if (nanLeft == keys.
Length
)
924
IntroSort(keys, values, 2 * (SegmentedArraySortUtils.Log2((uint)keys.
Length
) + 1));
975
Debug.Assert(keys.
Length
> 0);
976
Debug.Assert(values.Length == keys.
Length
);
979
int partitionSize = keys.
Length
;
1020
Debug.Assert(keys.
Length
>= SegmentedArrayHelper.IntrosortSizeThreshold);
1022
int hi = keys.
Length
- 1;
1079
Debug.Assert(keys.
Length
> 0);
1081
int n = keys.
Length
;
1121
for (int i = 0; i < keys.
Length
- 1; i++)
1237
for (int i = 0; i < keys.
Length
; i++)
Internal\SegmentedArraySegment`1.cs (4)
24
if ((uint)index >= (uint)
Length
)
33
if ((uint)start >= (uint)
Length
)
36
return new SegmentedArraySegment<T>(Array, Start + start,
Length
- start);
46
if ((uint)start + (ulong)(uint)length > (uint)
Length
)