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

Add SizeParamIndex or CountConst as required to extern methods #552

Merged
merged 1 commit into from
May 17, 2022
Merged

Conversation

AArnott
Copy link
Member

@AArnott AArnott commented May 17, 2022

The MarshalAsAttribute doesn't let us discern between 0 and unset. The C# compiler can tell and sets metadata based on the syntax. We have to lug around NativeArrayInfo in order to track a 0 vs. an unset value though till we're ready to emit syntax.

Fixes #372

The `MarshalAsAttribute` doesn't let us discern between 0 and unset. The C# compiler can tell and sets metadata based on the syntax. We have to lug around `NativeArrayInfo` in order to track a 0 vs. an unset value though till we're ready to emit syntax.

Fixes #372
@AArnott AArnott enabled auto-merge May 17, 2022 00:15
@AArnott AArnott merged commit 6f1877f into main May 17, 2022
@AArnott AArnott deleted the fix372 branch May 17, 2022 00:39
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

Successfully merging this pull request may close these issues.

Marshalled arrays should include SizeParamIndex and direction
1 participant