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

Fixed Stream.Position not being reset #76

Closed
wants to merge 2 commits into from

Conversation

d2dyno1
Copy link
Contributor

@d2dyno1 d2dyno1 commented Sep 6, 2024

Summary

This PR fixes an issue where reopening a sought/written to Stream opened on MemoryFile did not have its position reset.

Rationale

It is most common that virtually every method that opens a stream to a resource sets the stream pointer to the beginning. The only exception that may overrule this is when opening a new FileStream with the FileMode.Append flag. Any other behavior is thus erroneous.

@Arlodotexe
Copy link
Owner

This was fixed in #72, and we'll be bumping to 0.12.0 for the next update.

@Arlodotexe Arlodotexe closed this Sep 7, 2024
@d2dyno1 d2dyno1 deleted the d2dyno/fx_streampos branch September 7, 2024 08:10
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