27 references to PtrToStringUni
Microsoft.AspNetCore.Server.HttpSys (4)
src\aspnetcore\src\Shared\HttpSys\NativeInterop\CookedUrl.cs (4)
23return Marshal.PtrToStringUni((IntPtr)_nativeCookedUrl.pFullUrl.Value, _nativeCookedUrl.FullUrlLength / 2); 32return Marshal.PtrToStringUni((IntPtr)_nativeCookedUrl.pHost.Value, _nativeCookedUrl.HostLength / 2); 41return Marshal.PtrToStringUni((IntPtr)_nativeCookedUrl.pAbsPath.Value, _nativeCookedUrl.AbsPathLength / 2); 50return Marshal.PtrToStringUni((IntPtr)_nativeCookedUrl.pQueryString.Value, _nativeCookedUrl.QueryStringLength / 2);
Microsoft.AspNetCore.Server.IIS (4)
src\aspnetcore\src\Shared\HttpSys\NativeInterop\CookedUrl.cs (4)
23return Marshal.PtrToStringUni((IntPtr)_nativeCookedUrl.pFullUrl.Value, _nativeCookedUrl.FullUrlLength / 2); 32return Marshal.PtrToStringUni((IntPtr)_nativeCookedUrl.pHost.Value, _nativeCookedUrl.HostLength / 2); 41return Marshal.PtrToStringUni((IntPtr)_nativeCookedUrl.pAbsPath.Value, _nativeCookedUrl.AbsPathLength / 2); 50return Marshal.PtrToStringUni((IntPtr)_nativeCookedUrl.pQueryString.Value, _nativeCookedUrl.QueryStringLength / 2);
Microsoft.CodeAnalysis.Scripting (3)
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (1)
252var result = Marshal.PtrToStringUni((IntPtr)info.pszCurrentAssemblyPathBuf, (int)info.cchBuf - 1);
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\FusionAssemblyIdentity.cs (2)
154return Marshal.PtrToStringUni((IntPtr)p, (int)characterCountIncludingTerminator - 1); 197return Marshal.PtrToStringUni((IntPtr)p, (data.Length / 2) - 1);
ReachFramework (1)
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (1)
555string str = Marshal.PtrToStringUni(strAddr, itemByteSize / 2);
System.Data.Odbc (1)
Common\System\Data\ProviderBase\DbBuffer.cs (1)
99value = Marshal.PtrToStringUni(ptr, length);
System.Data.OleDb (2)
ColumnBinding.cs (1)
722value = Marshal.PtrToStringUni(ptr, charCount);
System\Data\ProviderBase\DbBuffer.cs (1)
72value = Marshal.PtrToStringUni(ptr, length);
System.DirectoryServices (5)
System\DirectoryServices\ActiveDirectory\Exception.cs (1)
493string recordName = Marshal.PtrToStringUni(record.Name.Buffer, record.Name.Length / 2);
System\DirectoryServices\ActiveDirectory\ForestTrustDomainInformation.cs (2)
26DnsName = Marshal.PtrToStringUni(domainInfo.DNSNameBuffer, domainInfo.DNSNameLength / 2); 27NetBiosName = Marshal.PtrToStringUni(domainInfo.NetBIOSNameBuffer, domainInfo.NetBIOSNameLength / 2);
System\DirectoryServices\ActiveDirectory\ForestTrustRelationshipInformation.cs (1)
390string excludedName = Marshal.PtrToStringUni(record.TopLevelName.Buffer, record.TopLevelName.Length / 2);
System\DirectoryServices\ActiveDirectory\TopLevelName.cs (1)
25Name = Marshal.PtrToStringUni(val.Buffer, val.Length / 2);
System.DirectoryServices.AccountManagement (2)
System\DirectoryServices\AccountManagement\AD\SidList.cs (2)
180entry.name = Marshal.PtrToStringUni(name.Name.Buffer, name.Name.Length / 2); 188entry.sidIssuerName = Marshal.PtrToStringUni(domain.Name.Buffer, domain.Name.Length / 2);
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.cs (1)
1340return PtrToStringUni(ptr, (int)(SysStringByteLen(ptr) / sizeof(char)));
System.Runtime.InteropServices.JavaScript (1)
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.String.cs (1)
26value = Marshal.PtrToStringUni(slot.IntPtrValue, slot.Length);
System.Security.Principal.Windows (2)
System\Security\Principal\SID.cs (2)
1038ReferencedDomains[i] = Marshal.PtrToStringUni(ti->Name.Buffer, ti->Name.Length / sizeof(char)); 1055string account = Marshal.PtrToStringUni(Ltn.Name.Buffer, Ltn.Name.Length / sizeof(char));
UIAutomationClientSideProviders (1)
MS\Internal\AutomationProxies\SafeCoTaskMem.cs (1)
29return Marshal.PtrToStringUni(handle, length);