Skip to content
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

Switch from delegates to UnmanagedCallersOnly and function pointers #55

Open
3 tasks
chkn opened this issue Jul 4, 2022 · 0 comments
Open
3 tasks

Switch from delegates to UnmanagedCallersOnly and function pointers #55

chkn opened this issue Jul 4, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@chkn
Copy link
Owner

chkn commented Jul 4, 2022

Now that we are targeting .NET 6, we can make use of the UnmanagedCallersOnlyAttribute and function pointers, and remove the overhead of managed delegates for calling to/from unmanaged code.

We will know this work is done when we can remove Delegates.cs.

Here is a (probably incomplete) list of methods to convert to UnmanagedCallersOnlyAttribute:

@chkn chkn added enhancement New feature or request good first issue Good for newcomers labels Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant