40 references to PlatformStringMarshaller
dotnet-aot (19)
ManagedHost.cs (14)
79
nint assemblyPathNative =
PlatformStringMarshaller
.ConvertToUnmanaged(assemblyPath);
80
nint typeNameNative =
PlatformStringMarshaller
.ConvertToUnmanaged(typeName);
81
nint methodNameNative =
PlatformStringMarshaller
.ConvertToUnmanaged(methodName);
101
PlatformStringMarshaller
.Free(assemblyPathNative);
102
PlatformStringMarshaller
.Free(typeNameNative);
103
PlatformStringMarshaller
.Free(methodNameNative);
124
host_path =
PlatformStringMarshaller
.ConvertToUnmanaged(hostPath),
125
dotnet_root =
PlatformStringMarshaller
.ConvertToUnmanaged(dotnetRoot),
189
PlatformStringMarshaller
.Free(parameters.host_path);
190
PlatformStringMarshaller
.Free(parameters.dotnet_root);
196
nint dotnetRootNative =
PlatformStringMarshaller
.ConvertToUnmanaged(_dotnetRoot);
197
nint runtimeConfigPathNative =
PlatformStringMarshaller
.ConvertToUnmanaged(_runtimeConfigPath);
235
PlatformStringMarshaller
.Free(dotnetRootNative);
236
PlatformStringMarshaller
.Free(runtimeConfigPathNative);
NativeEntryPoint.cs (5)
45
string hostPath =
PlatformStringMarshaller
.ConvertToManaged(hostPathPtr) ?? string.Empty;
46
string dotnetRoot =
PlatformStringMarshaller
.ConvertToManaged(dotnetRootPtr) ?? string.Empty;
47
string sdkDir =
PlatformStringMarshaller
.ConvertToManaged(sdkDirPtr) ?? string.Empty;
48
string hostfxrPath =
PlatformStringMarshaller
.ConvertToManaged(hostfxrPathPtr) ?? string.Empty;
54
args[i] =
PlatformStringMarshaller
.ConvertToManaged(argv[i]) ?? string.Empty;
Microsoft.DotNet.NativeWrapper (21)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\LibraryImports.g.cs (14)
19
__dotnetRoot_native = global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.ConvertToUnmanaged(dotnetRoot);
29
global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.Free(__dotnetRoot_native);
66
__workingDir_native = global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.ConvertToUnmanaged(workingDir);
67
__exeDir_native = global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.ConvertToUnmanaged(exeDir);
77
global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.Free(__workingDir_native);
78
global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.Free(__exeDir_native);
106
__exeDir_native = global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.ConvertToUnmanaged(exeDir);
116
global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.Free(__exeDir_native);
208
__argv_native__nativeSpan[__i0] = global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.ConvertToUnmanaged(__argv_native__managedSpan[__i0]);
234
global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.Free(__argv_native__nativeSpan[__i0]);
280
__value_native = global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.ConvertToUnmanaged(value);
281
__name_native = global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.ConvertToUnmanaged(name);
289
global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.Free(__value_native);
290
global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.Free(__name_native);
Interop.cs (6)
270
[LibraryImport(Constants.HostFxr, StringMarshalling = StringMarshalling.Custom, StringMarshallingCustomType = typeof(
PlatformStringMarshaller
))]
358
StringMarshallingCustomType = typeof(
PlatformStringMarshaller
))]
425
StringMarshallingCustomType = typeof(
PlatformStringMarshaller
))]
503
StringMarshallingCustomType = typeof(
PlatformStringMarshaller
))]
513
[MarshalUsing(typeof(
PlatformStringMarshaller
), ElementIndirectionDepth = 1)]
567
StringMarshallingCustomType = typeof(
PlatformStringMarshaller
))]
PlatformStringMarshaller.cs (1)
18
[CustomMarshaller(typeof(string), MarshalMode.Default, typeof(
PlatformStringMarshaller
))]