Skip to content

Ability to override marshalling methods in generator#140

Open
nerzhulart wants to merge 2 commits intoSharpGenTools:masterfrom
JetBrains:marshallingHelpers
Open

Ability to override marshalling methods in generator#140
nerzhulart wants to merge 2 commits intoSharpGenTools:masterfrom
JetBrains:marshallingHelpers

Conversation

@nerzhulart
Copy link
Contributor

Move marshalling methods from CppObject to special class MarshallingHelpers and add an ability to override this class in generator. This allows to replace these methods for COM objects to perform AddRef/Release properly

…elpers and add an ability to override this class in generator. This allows to replace these methods for COM objects to perform AddRef/Release properly
Copy link
Member

@jkoritzinsky jkoritzinsky left a comment

Choose a reason for hiding this comment

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

Can you verify that this works correctly with the "fast out parameter" case (preallocated CppObject that is filled in by an out parameter)?

@nerzhulart
Copy link
Contributor Author

Can you verify that this works correctly with the "fast out parameter" case (preallocated CppObject that is filled in by an out parameter)?

Added TransformObjectFromUnmanaged for fast out parameters

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