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

Make code NativeAOT compatible #1609

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 14, 2021

  1. Make code NativeAOT compatible

    I know that C# files are autogenerated, but in case
     somebody what to use it without waiting for change in code gen tooling.
     This PR has 3 changes, all of them trivially can be updated in the codegen:
     - `Marshal.SizeOf(Type)` switched to `Marshal.SizeOf<T>()`
     - `Marshal.PtrToStructure(IntPtr, Type)` to `Marshal.PtrToStructure<T>(IntPtr)`
     - `Marshal.PtrToStructure<string>(IntPtr)` is gross error, and should be mapped to `Marshal.PtrToStringAnsi(IntPtr)`
    kant2002 committed Nov 14, 2021
    Configuration menu
    Copy the full SHA
    f3c29fb View commit details
    Browse the repository at this point in the history