8 references to TryEncodeToUtf8
System.Private.CoreLib (5)
src\libraries\System.Private.CoreLib\src\System\Char.cs (1)
193
new Rune(this).
TryEncodeToUtf8
(utf8Destination, out bytesWritten);
src\libraries\System.Private.CoreLib\src\System\Reflection\AssemblyName.cs (1)
346
r.
TryEncodeToUtf8
(utf8Bytes, out int bytesWritten);
src\libraries\System.Private.CoreLib\src\System\Text\Rune.cs (2)
771
if (!
TryEncodeToUtf8
(destination, out int bytesWritten))
940
TryEncodeToUtf8
(utf8Destination, out bytesWritten);
src\libraries\System.Private.CoreLib\src\System\Text\UTF8Encoding.cs (1)
782
return value.
TryEncodeToUtf8
(bytes, out bytesWritten) ? OperationStatus.Done : OperationStatus.DestinationTooSmall;
System.Private.Uri (1)
System\UriHelper.cs (1)
277
r.
TryEncodeToUtf8
(utf8Bytes, out int bytesWritten);
System.Text.Encodings.Web (1)
System\Text\Encodings\Web\OptimizedInboxTextEncoder.cs (1)
318
if (!scalarValue.
TryEncodeToUtf8
(destination.Slice(dstIdx), out int utf8CodeUnitCount))
System.Text.Json (1)
System\Text\Json\Reader\JsonReaderHelper.Unescaping.cs (1)
576
bool success = rune.
TryEncodeToUtf8
(destination.Slice(written), out int bytesWritten);