19 references to PInvokeMarshal
System.Private.CoreLib (19)
Internal\Runtime\CompilerHelpers\InteropHelpers.cs (15)
29
return
PInvokeMarshal
.StringToAnsiString(str, bestFit, throwOnUnmappableChar);
34
return
PInvokeMarshal
.AnsiStringToString(buffer);
48
PInvokeMarshal
.StringToAnsiString(pManaged, lenUnicode, pNative, /*terminateWithNull=*/true, bestFit, throwOnUnmappableChar);
127
PInvokeMarshal
.AnsiStringToStringBuilder(newBuffer, stringBuilder);
135
PInvokeMarshal
.UnicodeStringToStringBuilder(newBuffer, stringBuilder);
144
PInvokeMarshal
.StringBuilderToAnsiString(stringBuilder, pNative, bestFit, throwOnUnmappableChar);
152
PInvokeMarshal
.StringBuilderToUnicodeString(stringBuilder, destination);
157
PInvokeMarshal
.WideCharArrayToAnsiCharArray(managedArray, pNative, bestFit, throwOnUnmappableChar);
172
PInvokeMarshal
.AnsiCharArrayToWideCharArray(pNative, managedArray);
183
return
PInvokeMarshal
.WideCharToAnsiChar(managedValue, bestFit, throwOnUnmappableChar);
192
return
PInvokeMarshal
.AnsiCharToWideChar(nativeValue);
233
int nativeLength =
PInvokeMarshal
.GetByteCount(pStr, stringLength);
235
PInvokeMarshal
.ConvertWideCharToMultiByte(pStr, stringLength, bstr, nativeLength, bestFit: false, throwOnUnmappableChar: false);
450
return
PInvokeMarshal
.GetCurrentCalleeOpenStaticDelegateFunctionPointer();
458
return
PInvokeMarshal
.GetCurrentCalleeDelegate<T>();
System\Runtime\InteropServices\Marshal.NativeAot.cs (4)
160
return
PInvokeMarshal
.GetDelegateForFunctionPointer(ptr, t.TypeHandle);
165
return
PInvokeMarshal
.GetFunctionPointerForDelegate(d);
170
return
PInvokeMarshal
.t_lastError;
175
PInvokeMarshal
.t_lastError = error;