68 references to ConvertToManaged
Microsoft.DotNet.NativeWrapper (1)
PlatformStringMarshaller.cs (1)
52: Utf8StringMarshaller.ConvertToManaged((byte*)unmanaged);
System.Console (3)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
183return Utf8StringMarshaller.ConvertToManaged(message)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
71username = Utf8StringMarshaller.ConvertToManaged(passwd.Name);
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
108path = Utf8StringMarshaller.ConvertToManaged(passwd.HomeDirectory);
System.Diagnostics.FileVersionInfo (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
183return Utf8StringMarshaller.ConvertToManaged(message)!;
System.Diagnostics.Process (5)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (1)
1565__retVal = global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ConvertToManaged(__retVal_native);
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
183return Utf8StringMarshaller.ConvertToManaged(message)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
42return Utf8StringMarshaller.ConvertToManaged(name)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
71username = Utf8StringMarshaller.ConvertToManaged(passwd.Name);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.FormatInfo.cs (1)
52format = formatType == -1 ? Utf8StringMarshaller.ConvertToManaged(formatBuffer)! : "";
System.Formats.Tar (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (1)
187__retVal = global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ConvertToManaged(__retVal_native);
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
183return Utf8StringMarshaller.ConvertToManaged(message)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
71username = Utf8StringMarshaller.ConvertToManaged(passwd.Name);
System.IO.Compression (1)
src\runtime\src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (1)
451public unsafe string GetErrorMessage() => Utf8StringMarshaller.ConvertToManaged(_zStream.msg) ?? string.Empty;
System.IO.FileSystem.DriveInfo (4)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (1)
190__retVal = global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ConvertToManaged(__retVal_native);
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
183return Utf8StringMarshaller.ConvertToManaged(message)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (1)
31callbackContext->_results.Add(Utf8StringMarshaller.ConvertToManaged(name)!);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.FormatInfo.cs (1)
52format = formatType == -1 ? Utf8StringMarshaller.ConvertToManaged(formatBuffer)! : "";
System.IO.FileSystem.Watcher (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
183return Utf8StringMarshaller.ConvertToManaged(message)!;
System.IO.MemoryMappedFiles (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
183return Utf8StringMarshaller.ConvertToManaged(message)!;
System.IO.Pipes (3)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
183return Utf8StringMarshaller.ConvertToManaged(message)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
42return Utf8StringMarshaller.ConvertToManaged(name)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
71username = Utf8StringMarshaller.ConvertToManaged(passwd.Name);
System.IO.Ports (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
183return Utf8StringMarshaller.ConvertToManaged(message)!;
System.Net.NameResolution (5)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
183return Utf8StringMarshaller.ConvertToManaged(message)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
42return Utf8StringMarshaller.ConvertToManaged(name)!;
System\Net\NameResolutionPal.Unix.cs (3)
61? Utf8StringMarshaller.ConvertToManaged(hostEntry.CanonicalName) 117localAliases[i] = Utf8StringMarshaller.ConvertToManaged(hostEntry.Aliases[i])!; 190return socketError == SocketError.Success ? Utf8StringMarshaller.ConvertToManaged(buffer) : null;
System.Net.NetworkInformation (4)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
183return Utf8StringMarshaller.ConvertToManaged(message)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetDomainName.cs (1)
35string domainName = Utf8StringMarshaller.ConvertToManaged(name)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
42return Utf8StringMarshaller.ConvertToManaged(name)!;
System\Net\NetworkInformation\LinuxNetworkInterface.cs (1)
98var lni = new LinuxNetworkInterface(Utf8StringMarshaller.ConvertToManaged((byte*)&nii->Name)!, nii->InterfaceIndex, systemProperties);
System.Net.Ping (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
183return Utf8StringMarshaller.ConvertToManaged(message)!;
System.Net.Primitives (3)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
183return Utf8StringMarshaller.ConvertToManaged(message)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetDomainName.cs (1)
35string domainName = Utf8StringMarshaller.ConvertToManaged(name)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
42return Utf8StringMarshaller.ConvertToManaged(name)!;
System.Net.Quic (6)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
183return Utf8StringMarshaller.ConvertToManaged(message)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (2)
75return Utf8StringMarshaller.ConvertToManaged(ptr); 81return Utf8StringMarshaller.ConvertToManaged(GetX509RootStoreFile_private(&unused));
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
41ret = Utf8StringMarshaller.ConvertToManaged(buf)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
241return Utf8StringMarshaller.ConvertToManaged(CryptoNative_X509VerifyCertErrorString(n))!;
System\Net\Quic\Internal\MsQuicApi.cs (1)
174string? gitHash = Utf8StringMarshaller.ConvertToManaged(libGitHash);
System.Net.Security (10)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
183return Utf8StringMarshaller.ConvertToManaged(message)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Net.Security.Native\Interop.GssApiException.cs (1)
89return (Status.GSS_S_COMPLETE != displayCallStatus) ? null : Utf8StringMarshaller.ConvertToManaged(displayBuffer._data);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Crypto.cs (2)
75return Utf8StringMarshaller.ConvertToManaged(ptr); 81return Utf8StringMarshaller.ConvertToManaged(GetX509RootStoreFile_private(&unused));
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.ERR.cs (1)
41ret = Utf8StringMarshaller.ConvertToManaged(buf)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
1429string msg = SR.Format(message, Utf8StringMarshaller.ConvertToManaged(Crypto.ErrReasonErrorString(errorVal)));
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (1)
437string? ret = Utf8StringMarshaller.ConvertToManaged(GetOpenSslCipherSuiteName(ssl, (int)cipherSuite, out int isTls12OrLowerInt));
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.SslCtx.cs (2)
187string? targetName = Utf8StringMarshaller.ConvertToManaged(namePtr); 232string? targetName = Utf8StringMarshaller.ConvertToManaged(namePtr);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.X509.cs (1)
241return Utf8StringMarshaller.ConvertToManaged(CryptoNative_X509VerifyCertErrorString(n))!;
System.Net.Sockets (1)
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
183return Utf8StringMarshaller.ConvertToManaged(message)!;
System.Net.WebSockets (1)
src\runtime\src\libraries\Common\src\System\IO\Compression\ZLibNative.cs (1)
451public unsafe string GetErrorMessage() => Utf8StringMarshaller.ConvertToManaged(_zStream.msg) ?? string.Empty;
System.Private.CoreLib (13)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (2)
3055__retVal = global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ConvertToManaged(__retVal_native); 3167__retVal = global::System.Runtime.InteropServices.Marshalling.Utf8StringMarshaller.ConvertToManaged(__retVal_native);
src\runtime\src\libraries\Common\src\Interop\Unix\Interop.Errors.cs (1)
183return Utf8StringMarshaller.ConvertToManaged(message)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetCwd.cs (1)
58return Utf8StringMarshaller.ConvertToManaged(ptr);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetHostName.cs (1)
42return Utf8StringMarshaller.ConvertToManaged(name)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetPwUid.cs (1)
71username = Utf8StringMarshaller.ConvertToManaged(passwd.Name);
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.GetUnixVersion.cs (1)
45return Utf8StringMarshaller.ConvertToManaged(ptr)!;
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.MountPoints.cs (1)
31callbackContext->_results.Add(Utf8StringMarshaller.ConvertToManaged(name)!);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Environment.Variables.Unix.cs (2)
25return Utf8StringMarshaller.ConvertToManaged(Interop.Sys.GetEnv(variable)); 164value = Utf8StringMarshaller.ConvertToManaged(splitpoint + 1)!;
src\runtime\src\libraries\System.Private.CoreLib\src\System\IO\PersistedFiles.Unix.cs (1)
108path = Utf8StringMarshaller.ConvertToManaged(passwd.HomeDirectory);
System\GC.NativeAot.cs (2)
672string nameAsString = Utf8StringMarshaller.ConvertToManaged(name)!; 681string? dataAsString = Utf8StringMarshaller.ConvertToManaged((byte*)data);