-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please support for Marshal.GetDelegateForFunctionPointer<T>() in Dotnet 7.0 / 8.0 #85699
Comments
Tagging subscribers to this area: @dotnet/interop-contrib Issue Details
Function pointers are more performant and AOT friendly replacement for Originally posted by @jkotas in #69919 (comment) Ok how do I know replace from
as into GameLauncher but used And I would like to pass
Engine uses PublishAot, StripSymbols and InvariantGlobalization
|
You do want to have
This should be
This should be |
Thanks I will try later. Can I close it? |
Function pointers are more performant and AOT friendly replacement for
Marshal.GetDelegateForFunctionPointer
. Can you use them instead? If you need help with how to switch to function pointers, please open a new issue or discussion on it.Originally posted by @jkotas in #69919 (comment)
Ok how do I know replace from
Marshal.GetDelegateForFunctionPointer<T> to
delegate unmanaged<...>.
Tshould get also
delegate unmanaged` or not?as into GameLauncher but used
PublishSingleFile
andPublishTrimmed
And I would like to pass
Host_Main
andHost_Shutdown
from native library EngineEngine uses PublishAot, StripSymbols and InvariantGlobalization
Result:
How do I replace
Marshal.GetDelegateForFunctionPointer<T>
todelegate *unamaged[cdel]<>
?The text was updated successfully, but these errors were encountered: