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

Seek problem with 64-bit #153

Closed
Enfis opened this issue Aug 21, 2020 · 1 comment · Fixed by #155
Closed

Seek problem with 64-bit #153

Enfis opened this issue Aug 21, 2020 · 1 comment · Fixed by #155
Assignees
Labels
bug Something isn't working

Comments

@Enfis
Copy link

Enfis commented Aug 21, 2020

Version used: v2.0.0.20200
File: FileReaderJsInterop.InteropFileStream.cs
Method: public override long Seek (long offset, SeekOrigin origin)

It incorrectly makes an 'int' cast when seeking using SeekOrigin.Current or SeekOrigin.End, loosing the 64-bit long effect of 'position' parameter and throwing a IOException (working with big files over 2 GiB).

Thank you for this great plug-in ;-)

@Tewr Tewr self-assigned this Aug 24, 2020
@Tewr Tewr added the bug Something isn't working label Aug 24, 2020
@Tewr
Copy link
Owner

Tewr commented Aug 24, 2020

Thank you for you feedback. The whole method is based on MemoryStream which is completely unreasonable for a pure stream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants