25 references to DecodeFromUtf8
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
213return 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)
237if (Rune.DecodeFromUtf8(utf8Text, out Rune rune, out int bytesConsumed) != Buffers.OperationStatus.Done || 254if (Rune.DecodeFromUtf8(utf8Text, out Rune rune, out int bytesConsumed) != Buffers.OperationStatus.Done ||
src\libraries\System.Private.CoreLib\src\System\Globalization\Ordinal.Utf8.cs (4)
66OperationStatus statusA = Rune.DecodeFromUtf8(spanA, out Rune runeA, out int bytesConsumedA); 67OperationStatus statusB = Rune.DecodeFromUtf8(spanB, out Rune runeB, out int bytesConsumedB); 376OperationStatus statusA = Rune.DecodeFromUtf8(spanA, out Rune runeA, out int bytesConsumedA); 377OperationStatus statusB = Rune.DecodeFromUtf8(spanB, out Rune runeB, out int bytesConsumedB);
src\libraries\System.Private.CoreLib\src\System\Guid.cs (2)
930if (Rune.DecodeFromUtf8(srcUtf8Span.Slice(i), out Rune current, out int bytesConsumed) != Buffers.OperationStatus.Done) 961if (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 663return DecodeFromUtf8(source.Slice(index), out value, out bytesConsumed); 712OperationStatus operationStatus = DecodeFromUtf8(source, out Rune tempRune, out int tempBytesConsumed); 945if (DecodeFromUtf8(utf8Text, out result, out int bytesConsumed) == OperationStatus.Done) 961if (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)
201Rune.DecodeFromUtf8(source, out _, out int bytesConsumedJustNow); 287Rune.DecodeFromUtf8(source, out _, out int bytesConsumedJustNow);
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
787return Rune.DecodeFromUtf8(bytes, out value, out bytesConsumed);
System.Private.Uri (1)
System\PercentEncodingHelper.cs (1)
88if (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)
304OperationStatus runeDecodeStatus = Rune.DecodeFromUtf8(source.Slice(srcIdx), out Rune scalarValue, out int bytesConsumedJustNow); 383OperationStatus opStatus = Rune.DecodeFromUtf8(data, out Rune scalarValue, out int bytesConsumed);
System\Text\Encodings\Web\TextEncoder.cs (2)
337OperationStatus opStatus = Rune.DecodeFromUtf8(utf8Source, out Rune scalarValue, out int bytesConsumedJustNow); 565OperationStatus opStatus = Rune.DecodeFromUtf8(utf8Text, out Rune scalarValue, out int bytesConsumed);
System.Text.Json (1)
System\Text\Json\Writer\Utf8JsonWriter.WriteValues.StringSegment.cs (1)
242switch (Rune.DecodeFromUtf8(combinedBuffer, out _, out int bytesConsumed))