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\0\LibraryImports.g.cs (14)
19
__dotnetRoot_native = global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.ConvertToUnmanaged(dotnetRoot);
30
global::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);
80
global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.Free(__workingDir_native);
81
global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.Free(__exeDir_native);
110
__exeDir_native = global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.ConvertToUnmanaged(exeDir);
121
global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.Free(__exeDir_native);
216
__argv_native__nativeSpan[__i0] = global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.ConvertToUnmanaged(__argv_native__managedSpan[__i0]);
245
global::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);
302
global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.Free(__value_native);
303
global::Microsoft.DotNet.NativeWrapper.
PlatformStringMarshaller
.Free(__name_native);
Interop.cs (6)
271
[LibraryImport(Constants.HostFxr, StringMarshalling = StringMarshalling.Custom, StringMarshallingCustomType = typeof(
PlatformStringMarshaller
))]
357
StringMarshallingCustomType = typeof(
PlatformStringMarshaller
))]
424
StringMarshallingCustomType = typeof(
PlatformStringMarshaller
))]
502
StringMarshallingCustomType = typeof(
PlatformStringMarshaller
))]
512
[MarshalUsing(typeof(
PlatformStringMarshaller
), ElementIndirectionDepth = 1)]
566
StringMarshallingCustomType = typeof(
PlatformStringMarshaller
))]
PlatformStringMarshaller.cs (1)
18
[CustomMarshaller(typeof(string), MarshalMode.Default, typeof(
PlatformStringMarshaller
))]