25 references to DecodeFromUtf8
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
213
return Rune.
DecodeFromUtf8
(array, out rune, out bytesConsumed) == System.Buffers.OperationStatus.Done;
System.Private.CoreLib (18)
src\libraries\System.Private.CoreLib\src\System\Char.cs (2)
237
if (Rune.
DecodeFromUtf8
(utf8Text, out Rune rune, out int bytesConsumed) != Buffers.OperationStatus.Done ||
254
if (Rune.
DecodeFromUtf8
(utf8Text, out Rune rune, out int bytesConsumed) != Buffers.OperationStatus.Done ||
src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.Utf8.cs (4)
66
OperationStatus statusA = Rune.
DecodeFromUtf8
(spanA, out Rune runeA, out int bytesConsumedA);
67
OperationStatus statusB = Rune.
DecodeFromUtf8
(spanB, out Rune runeB, out int bytesConsumedB);
376
OperationStatus statusA = Rune.
DecodeFromUtf8
(spanA, out Rune runeA, out int bytesConsumedA);
377
OperationStatus statusB = Rune.
DecodeFromUtf8
(spanB, out Rune runeB, out int bytesConsumedB);
src\libraries\System.Private.CoreLib\src\System\Guid.cs (2)
930
if (Rune.
DecodeFromUtf8
(srcUtf8Span.Slice(i), out Rune current, out int bytesConsumed) != Buffers.OperationStatus.Done)
961
if (Rune.
DecodeFromUtf8
(srcUtf8Span.Slice(i), out Rune current, out int bytesConsumed) != Buffers.OperationStatus.Done)
src\libraries\System.Private.CoreLib\src\System\MemoryExtensions.Trim.Utf8.cs (2)
27
_ = Rune.
DecodeFromUtf8
(span, out Rune first, out int firstBytesConsumed);
50
_ = Rune.
DecodeFromUtf8
(span, out Rune current, out int bytesConsumed);
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (5)
630
/// This method is very similar to <see cref="
DecodeFromUtf8
(ReadOnlySpan{byte}, out Rune, out int)"/>, but it allows
663
return
DecodeFromUtf8
(source.Slice(index), out value, out bytesConsumed);
712
OperationStatus operationStatus =
DecodeFromUtf8
(source, out Rune tempRune, out int tempBytesConsumed);
945
if (
DecodeFromUtf8
(utf8Text, out result, out int bytesConsumed) == OperationStatus.Done)
961
if (
DecodeFromUtf8
(utf8Text, out Rune result, out int bytesConsumed) != OperationStatus.Done || bytesConsumed != utf8Text.Length)
src\libraries\System.Private.CoreLib\src\System\Text\Unicode\Utf8.cs (2)
201
Rune.
DecodeFromUtf8
(source, out _, out int bytesConsumedJustNow);
287
Rune.
DecodeFromUtf8
(source, out _, out int bytesConsumedJustNow);
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
787
return Rune.
DecodeFromUtf8
(bytes, out value, out bytesConsumed);
System.Private.Uri (1)
System\PercentEncodingHelper.cs (1)
88
if (Rune.
DecodeFromUtf8
(new ReadOnlySpan<byte>(&temp, bytesLeftInBuffer), out Rune rune, out bytesConsumed) == OperationStatus.Done)
System.Text.Encodings.Web (4)
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (2)
304
OperationStatus runeDecodeStatus = Rune.
DecodeFromUtf8
(source.Slice(srcIdx), out Rune scalarValue, out int bytesConsumedJustNow);
383
OperationStatus opStatus = Rune.
DecodeFromUtf8
(data, out Rune scalarValue, out int bytesConsumed);
System\Text\Encodings\Web\TextEncoder.cs (2)
337
OperationStatus opStatus = Rune.
DecodeFromUtf8
(utf8Source, out Rune scalarValue, out int bytesConsumedJustNow);
565
OperationStatus opStatus = Rune.
DecodeFromUtf8
(utf8Text, out Rune scalarValue, out int bytesConsumed);
System.Text.Json (1)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (1)
242
switch (Rune.
DecodeFromUtf8
(combinedBuffer, out _, out int bytesConsumed))