11 references to TryEncodeToUtf16
Microsoft.AspNetCore.Components (1)
src\Shared\UrlDecoder\UrlDecoder.cs (1)
524
if (!System.Text.Rune.TryCreate(currentDecodeBits, out var rune) || !rune.
TryEncodeToUtf16
(buffer.Slice(destinationIndex), out var charsWritten))
Microsoft.AspNetCore.Http.Abstractions (1)
src\Shared\UrlDecoder\UrlDecoder.cs (1)
524
if (!System.Text.Rune.TryCreate(currentDecodeBits, out var rune) || !rune.
TryEncodeToUtf16
(buffer.Slice(destinationIndex), out var charsWritten))
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\UrlDecoder\UrlDecoder.cs (1)
524
if (!System.Text.Rune.TryCreate(currentDecodeBits, out var rune) || !rune.
TryEncodeToUtf16
(buffer.Slice(destinationIndex), out var charsWritten))
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\UrlDecoder\UrlDecoder.cs (1)
524
if (!System.Text.Rune.TryCreate(currentDecodeBits, out var rune) || !rune.
TryEncodeToUtf16
(buffer.Slice(destinationIndex), out var charsWritten))
Microsoft.AspNetCore.WebUtilities (1)
src\Shared\UrlDecoder\UrlDecoder.cs (1)
524
if (!System.Text.Rune.TryCreate(currentDecodeBits, out var rune) || !rune.
TryEncodeToUtf16
(buffer.Slice(destinationIndex), out var charsWritten))
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Text\DecoderFallback.cs (1)
274
if (thisRune.
TryEncodeToUtf16
(chars, out int charsWrittenJustNow))
src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (1)
299
if (value.
TryEncodeToUtf16
(chars, out charsWritten))
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (2)
753
if (!
TryEncodeToUtf16
(destination, out int charsWritten))
937
TryEncodeToUtf16
(destination, out charsWritten);
System.Text.Encodings.Web (2)
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (1)
210
if (!scalarValue.
TryEncodeToUtf16
(destination.Slice(dstIdx), out int utf16CodeUnitCount))
System\Text\Encodings\Web\TextEncoder.cs (1)
473
if (!scalarValue.
TryEncodeToUtf16
(destination, out _))