71 references to PtrToStringUTF8
Microsoft.ML.TestFrameworkCommon (1)
Attributes\AttributeHelpers.cs (1)
23version = Version.Parse(Marshal.PtrToStringUTF8(gnu_get_libc_version()));
System.Console (3)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
70username = Marshal.PtrToStringUTF8((IntPtr)passwd.Name);
src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
102path = Marshal.PtrToStringUTF8((IntPtr)passwd.HomeDirectory);
System.Diagnostics.FileVersionInfo (1)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
System.Diagnostics.Process (4)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
41return Marshal.PtrToStringUTF8((IntPtr)name)!;
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
70username = Marshal.PtrToStringUTF8((IntPtr)passwd.Name);
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.FormatInfo.cs (1)
63Marshal.PtrToStringUTF8((IntPtr)formatBuffer)!;
System.Formats.Tar (2)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
70username = Marshal.PtrToStringUTF8((IntPtr)passwd.Name);
System.IO.Compression (1)
src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (1)
320public string GetErrorMessage() => _zStream.msg != ZNullPtr ? Marshal.PtrToStringUTF8(_zStream.msg)! : string.Empty;
System.IO.Compression.ZipFile (1)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
System.IO.FileSystem.DriveInfo (3)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (1)
29callbackContext->_results.Add(Marshal.PtrToStringUTF8((IntPtr)name)!);
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.FormatInfo.cs (1)
63Marshal.PtrToStringUTF8((IntPtr)formatBuffer)!;
System.IO.FileSystem.Watcher (1)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
System.IO.MemoryMappedFiles (1)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
System.IO.Pipes (3)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
41return Marshal.PtrToStringUTF8((IntPtr)name)!;
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
70username = Marshal.PtrToStringUTF8((IntPtr)passwd.Name);
System.IO.Ports (1)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
System.Net.NameResolution (5)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
41return Marshal.PtrToStringUTF8((IntPtr)name)!;
System\Net\NameResolutionPal.Unix.cs (3)
60? Marshal.PtrToStringUTF8((IntPtr)hostEntry.CanonicalName) 116localAliases[i] = Marshal.PtrToStringUTF8((IntPtr)hostEntry.Aliases[i])!; 189return socketError == SocketError.Success ? Marshal.PtrToStringUTF8((IntPtr)buffer) : null;
System.Net.NetworkInformation (4)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetDomainName.cs (1)
34string domainName = Marshal.PtrToStringUTF8((IntPtr)name)!;
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
41return Marshal.PtrToStringUTF8((IntPtr)name)!;
System\Net\NetworkInformation\LinuxNetworkInterface.cs (1)
97var lni = new LinuxNetworkInterface(Marshal.PtrToStringUTF8((IntPtr)nii->Name)!, nii->InterfaceIndex, systemProperties);
System.Net.Ping (1)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
System.Net.Primitives (3)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetDomainName.cs (1)
34string domainName = Marshal.PtrToStringUTF8((IntPtr)name)!;
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
41return Marshal.PtrToStringUTF8((IntPtr)name)!;
System.Net.Quic (6)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (2)
74return Marshal.PtrToStringUTF8(ptr); 80return Marshal.PtrToStringUTF8(GetX509RootStoreFile_private(&unused));
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
40ret = Marshal.PtrToStringUTF8((IntPtr)buf)!;
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
255return Marshal.PtrToStringUTF8(CryptoNative_X509VerifyCertErrorString(n))!;
System\Net\Quic\Internal\MsQuicApi.cs (1)
173string? gitHash = Marshal.PtrToStringUTF8((IntPtr)libGitHash);
System.Net.Security (10)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssApiException.cs (1)
88return (Status.GSS_S_COMPLETE != displayCallStatus) ? null : Marshal.PtrToStringUTF8(displayBuffer._data);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (2)
74return Marshal.PtrToStringUTF8(ptr); 80return Marshal.PtrToStringUTF8(GetX509RootStoreFile_private(&unused));
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
40ret = Marshal.PtrToStringUTF8((IntPtr)buf)!;
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
937string msg = SR.Format(message, Marshal.PtrToStringUTF8(Crypto.ErrReasonErrorString(errorVal)));
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
309string? ret = Marshal.PtrToStringUTF8(GetOpenSslCipherSuiteName(ssl, (int)cipherSuite, out int isTls12OrLowerInt));
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (2)
177string? targetName = Marshal.PtrToStringUTF8(namePtr); 222string? targetName = Marshal.PtrToStringUTF8(namePtr);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
255return Marshal.PtrToStringUTF8(CryptoNative_X509VerifyCertErrorString(n))!;
System.Net.Sockets (1)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
System.Net.WebSockets (1)
src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (1)
320public string GetErrorMessage() => _zStream.msg != ZNullPtr ? Marshal.PtrToStringUTF8(_zStream.msg)! : string.Empty;
System.Private.CoreLib (10)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetCwd.cs (1)
57return Marshal.PtrToStringUTF8((IntPtr)ptr);
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
41return Marshal.PtrToStringUTF8((IntPtr)name)!;
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
70username = Marshal.PtrToStringUTF8((IntPtr)passwd.Name);
src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (1)
29callbackContext->_results.Add(Marshal.PtrToStringUTF8((IntPtr)name)!);
src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
102path = Marshal.PtrToStringUTF8((IntPtr)passwd.HomeDirectory);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.Unix.cs (1)
18return PtrToStringUTF8(ptr);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\Utf8StringMarshaller.cs (1)
42=> Marshal.PtrToStringUTF8((IntPtr)unmanaged);
src\System\GC.CoreCLR.cs (2)
883string nameAsString = Marshal.PtrToStringUTF8((IntPtr)name)!; 892string? dataAsString = Marshal.PtrToStringUTF8((nint)data);
System.Security.Cryptography (8)
src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
182return Marshal.PtrToStringUTF8((IntPtr)message)!;
src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
70username = Marshal.PtrToStringUTF8((IntPtr)passwd.Name);
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (2)
74return Marshal.PtrToStringUTF8(ptr); 80return Marshal.PtrToStringUTF8(GetX509RootStoreFile_private(&unused));
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
40ret = Marshal.PtrToStringUTF8((IntPtr)buf)!;
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
255return Marshal.PtrToStringUTF8(CryptoNative_X509VerifyCertErrorString(n))!;
src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
102path = Marshal.PtrToStringUTF8((IntPtr)passwd.HomeDirectory);
System\Security\Cryptography\OidLookup.OpenSsl.cs (1)
29return Marshal.PtrToStringUTF8(friendlyNamePtr);