40 references to PlatformStringMarshaller
dotnet-aot (19)
ManagedHost.cs (14)
79nint assemblyPathNative = PlatformStringMarshaller.ConvertToUnmanaged(assemblyPath); 80nint typeNameNative = PlatformStringMarshaller.ConvertToUnmanaged(typeName); 81nint methodNameNative = PlatformStringMarshaller.ConvertToUnmanaged(methodName); 101PlatformStringMarshaller.Free(assemblyPathNative); 102PlatformStringMarshaller.Free(typeNameNative); 103PlatformStringMarshaller.Free(methodNameNative); 124host_path = PlatformStringMarshaller.ConvertToUnmanaged(hostPath), 125dotnet_root = PlatformStringMarshaller.ConvertToUnmanaged(dotnetRoot), 189PlatformStringMarshaller.Free(parameters.host_path); 190PlatformStringMarshaller.Free(parameters.dotnet_root); 196nint dotnetRootNative = PlatformStringMarshaller.ConvertToUnmanaged(_dotnetRoot); 197nint runtimeConfigPathNative = PlatformStringMarshaller.ConvertToUnmanaged(_runtimeConfigPath); 235PlatformStringMarshaller.Free(dotnetRootNative); 236PlatformStringMarshaller.Free(runtimeConfigPathNative);
NativeEntryPoint.cs (5)
45string hostPath = PlatformStringMarshaller.ConvertToManaged(hostPathPtr) ?? string.Empty; 46string dotnetRoot = PlatformStringMarshaller.ConvertToManaged(dotnetRootPtr) ?? string.Empty; 47string sdkDir = PlatformStringMarshaller.ConvertToManaged(sdkDirPtr) ?? string.Empty; 48string hostfxrPath = PlatformStringMarshaller.ConvertToManaged(hostfxrPathPtr) ?? string.Empty; 54args[i] = PlatformStringMarshaller.ConvertToManaged(argv[i]) ?? string.Empty;
Microsoft.DotNet.NativeWrapper (21)
_generated\0\LibraryImports.g.cs (14)
19__dotnetRoot_native = global::Microsoft.DotNet.NativeWrapper.PlatformStringMarshaller.ConvertToUnmanaged(dotnetRoot); 30global::Microsoft.DotNet.NativeWrapper.PlatformStringMarshaller.Free(__dotnetRoot_native); 68__workingDir_native = global::Microsoft.DotNet.NativeWrapper.PlatformStringMarshaller.ConvertToUnmanaged(workingDir); 69__exeDir_native = global::Microsoft.DotNet.NativeWrapper.PlatformStringMarshaller.ConvertToUnmanaged(exeDir); 80global::Microsoft.DotNet.NativeWrapper.PlatformStringMarshaller.Free(__workingDir_native); 81global::Microsoft.DotNet.NativeWrapper.PlatformStringMarshaller.Free(__exeDir_native); 110__exeDir_native = global::Microsoft.DotNet.NativeWrapper.PlatformStringMarshaller.ConvertToUnmanaged(exeDir); 121global::Microsoft.DotNet.NativeWrapper.PlatformStringMarshaller.Free(__exeDir_native); 216__argv_native__nativeSpan[__i0] = global::Microsoft.DotNet.NativeWrapper.PlatformStringMarshaller.ConvertToUnmanaged(__argv_native__managedSpan[__i0]); 245global::Microsoft.DotNet.NativeWrapper.PlatformStringMarshaller.Free(__argv_native__nativeSpan[__i0]); 293__value_native = global::Microsoft.DotNet.NativeWrapper.PlatformStringMarshaller.ConvertToUnmanaged(value); 294__name_native = global::Microsoft.DotNet.NativeWrapper.PlatformStringMarshaller.ConvertToUnmanaged(name); 302global::Microsoft.DotNet.NativeWrapper.PlatformStringMarshaller.Free(__value_native); 303global::Microsoft.DotNet.NativeWrapper.PlatformStringMarshaller.Free(__name_native);
Interop.cs (6)
271[LibraryImport(Constants.HostFxr, StringMarshalling = StringMarshalling.Custom, StringMarshallingCustomType = typeof(PlatformStringMarshaller))] 357StringMarshallingCustomType = typeof(PlatformStringMarshaller))] 424StringMarshallingCustomType = typeof(PlatformStringMarshaller))] 502StringMarshallingCustomType = typeof(PlatformStringMarshaller))] 512[MarshalUsing(typeof(PlatformStringMarshaller), ElementIndirectionDepth = 1)] 566StringMarshallingCustomType = typeof(PlatformStringMarshaller))]
PlatformStringMarshaller.cs (1)
18[CustomMarshaller(typeof(string), MarshalMode.Default, typeof(PlatformStringMarshaller))]