11 references to TryEncodeToUtf16
Microsoft.AspNetCore.Components (1)
src\Shared\UrlDecoder\UrlDecoder.cs (1)
524if (!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)
524if (!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)
524if (!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)
524if (!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)
524if (!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)
274if (thisRune.TryEncodeToUtf16(chars, out int charsWrittenJustNow))
src\libraries\System.Private.CoreLib\src\System\Text\DecoderNLS.cs (1)
299if (value.TryEncodeToUtf16(chars, out charsWritten))
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (2)
753if (!TryEncodeToUtf16(destination, out int charsWritten)) 937TryEncodeToUtf16(destination, out charsWritten);
System.Text.Encodings.Web (2)
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (1)
210if (!scalarValue.TryEncodeToUtf16(destination.Slice(dstIdx), out int utf16CodeUnitCount))
System\Text\Encodings\Web\TextEncoder.cs (1)
473if (!scalarValue.TryEncodeToUtf16(destination, out _))