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