sharppcap icon indicating copy to clipboard operation
sharppcap copied to clipboard

Consider replacing all Marshal.PtrToStructure with manual marshalling

Open Fabi opened this issue 2 years ago • 0 comments

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

Fabi avatar Jul 03 '22 16:07 Fabi