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

Issue #6661: Moved content writing from Flush to new method FinalizeContent #8266

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

h3allen
Copy link

@h3allen h3allen commented Apr 2, 2024

Solution for Issue #6661
Moves the previous code writing content in Flush() to new method FinalizeContent() and calls it in ContentCompiler method Compile() before calling Flush().

@mrhelmut
Copy link
Contributor

mrhelmut commented Apr 5, 2024

Note for maintainers: tests must be run against this PR.

/// <summary>
/// Clears buffer using BinaryWriter's flush method
/// </summary>
public override void Flush()
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this anymore? If it's defaulting to the virtual base call anyways.

Copy link
Contributor

Choose a reason for hiding this comment

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

If all it's doing is calling the base, then it's not needed

Copy link
Author

Choose a reason for hiding this comment

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

I can certainly go and delete it if it's only calling base and has no other purpose

Copy link
Author

Choose a reason for hiding this comment

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

Deleted! Apologies for the delay.

Copy link
Contributor

Choose a reason for hiding this comment

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

I am not a maintainer so you would need to ping @harry-cpp / @mrhelmut to review the PR(s).

Flush called base.Flush() exclusively, no longer needed
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.

None yet

4 participants