18 references to FastComparisonResult
System.Reflection.Metadata (18)
System\Reflection\Internal\Utilities\MemoryBlock.cs (15)
350
FastComparisonResult
result = Utf8NullTerminatedFastCompare(offset, text, 0, out _, terminator, ignoreCase);
352
if (result ==
FastComparisonResult
.Inconclusive)
358
return result ==
FastComparisonResult
.Equal;
364
FastComparisonResult
result = Utf8NullTerminatedFastCompare(offset, text, 0, out _, terminator, ignoreCase);
368
case
FastComparisonResult
.Equal:
369
case
FastComparisonResult
.BytesStartWithText:
372
case
FastComparisonResult
.Unequal:
373
case
FastComparisonResult
.TextStartsWithBytes:
377
Debug.Assert(result ==
FastComparisonResult
.Inconclusive);
393
internal
FastComparisonResult
Utf8NullTerminatedFastCompare(int offset, string text, int textStart, out int firstDifferenceIndex, char terminator, bool ignoreCase)
426
return (currentChar > 0x7F) ?
FastComparisonResult
.Inconclusive :
FastComparisonResult
.Unequal;
437
return
FastComparisonResult
.Equal;
440
return textTerminated ?
FastComparisonResult
.BytesStartWithText :
FastComparisonResult
.TextStartsWithBytes;
System\Reflection\Metadata\Internal\BlobHeap.cs (3)
244
var
result = partBlock.Utf8NullTerminatedFastCompare(0, other, otherIndex, out firstDifferenceIndex, terminator: '\0', ignoreCase: ignoreCase);
245
if (result == MemoryBlock.
FastComparisonResult
.Inconclusive)
250
if (result == MemoryBlock.
FastComparisonResult
.Unequal ||