15 references to PtrToStringAnsi
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (1)
MonoMSBuildDiscovery.cs (1)
61var result = Marshal.PtrToStringAnsi(ptr); // uses UTF8 on Unix
Microsoft.ML.LightGbm (2)
WrappedLightGbmInterface.cs (2)
242string mes = Marshal.PtrToStringAnsi(charPtr); 291return Marshal.PtrToStringAnsi(src);
Microsoft.ML.TimeSeries (1)
FftUtils.cs (1)
208throw Contracts.Except(Marshal.PtrToStringAnsi(ErrorMessage(status)));
PresentationCore (2)
System\Windows\Media\Imaging\PropVariant.cs (2)
600array[i] = Marshal.PtrToStringAnsi(ptr); 676return Marshal.PtrToStringAnsi(pszVal);
System.DirectoryServices.Protocols (4)
System\DirectoryServices\Protocols\Interop\LdapPal.Linux.cs (1)
176internal static string PtrToString(IntPtr requestName) => Marshal.PtrToStringAnsi(requestName);
System\DirectoryServices\Protocols\ldap\LdapConnection.Linux.cs (3)
162defaults.realm = Marshal.PtrToStringAnsi(outValue); 167defaults.authcid = Marshal.PtrToStringAnsi(outValue); 172defaults.authzid = Marshal.PtrToStringAnsi(outValue);
System.IO.Compression (1)
System\IO\Compression\Zstandard\ZstandardUtils.cs (1)
45return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(errorNamePtr) ?? $"Unknown error {error}";
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\AnsiStringMarshaller.cs (1)
40=> Marshal.PtrToStringAnsi((IntPtr)unmanaged);
System.Private.Windows.Core (2)
Windows\Win32\System\Variant\VARIANT.cs (2)
159return Marshal.PtrToStringAnsi(*(IntPtr*)data); 840result[i] = Marshal.PtrToStringAnsi(data[i]);
UIAutomationTypes (1)
src\Microsoft.DotNet.Wpf\src\Shared\MS\Win32\NativeMethodsCLR.cs (1)
2126return Marshal.PtrToStringAnsi(val);