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

Consider replacing all Marshal.PtrToStructure with manual marshalling #409

Open
Fabi opened this issue Jul 3, 2022 · 0 comments
Open

Consider replacing all Marshal.PtrToStructure with manual marshalling #409

Fabi opened this issue Jul 3, 2022 · 0 comments

Comments

@Fabi
Copy link

Fabi commented Jul 3, 2022

Recently I worked on some apps with sharppcap and tested it with the reflection free mode in native aot. Currently it's incompatible due to the usage of Marshal.PtrToStructure.
It should be considered to change all those usages to custom marshalling to have those things working at least in .NET 7 in reflection free mode.

Samples from a runtime change: https://github.com/dotnet/runtime/pull/70866/files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant