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