Skip to content

Ability to override marshalling methods in generator#140

Open
nerzhulart wants to merge 2 commits into
SharpGenTools:masterfrom
JetBrains:marshallingHelpers
Open

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

Conversation

@nerzhulart

Copy link
Copy Markdown
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

@jkoritzinsky jkoritzinsky left a comment

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.

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

Comment thread SharpGen/Generator/Marshallers/MarshallerBase.cs Outdated
@nerzhulart

Copy link
Copy Markdown
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