Skip to content

Hacked-down support for out parameters#4

Open
maxkatz6 wants to merge 1 commit into
masterfrom
out-parameters
Open

Hacked-down support for out parameters#4
maxkatz6 wants to merge 1 commit into
masterfrom
out-parameters

Conversation

@maxkatz6

Copy link
Copy Markdown
Member

Some APIs, like ImpellerPathGetBounds(*ImpellerRect) write data into "out_" prefixed parameter. Before this PR, NImpeller wouldn't allow reading back any data, as struct was copied on stack.

return "string";
return MapInteropType(pt.ElementType, false, false) + new string('*', pt.Level);
if (pt.Level == 1 && outHint)
return "out " + MapInteropType(pt.ElementType, false, allowStrings, false);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that out isn't a part of a type.

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.

2 participants