We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Incompatible behavior to use the Seek function of the s2.ReadSeeker with s2 Index when using whence=io.SeekEnd
whence=io.SeekEnd
filesize, err = rs.Seek(0, io.SeekEnd)
pos, err = rs.Seek(-10, io.SeekEnd)
The text was updated successfully, but these errors were encountered:
s2: Fix incorrect seek for io.SeekEnd
af7efe1
Offset sign was flipped Fixes #574
Thanks for the report! Added a fix I will merge shortly.
Sorry, something went wrong.
s2: Fix incorrect seek for io.SeekEnd (#575)
f31f904
Successfully merging a pull request may close this issue.
Incompatible behavior to use the Seek function of the s2.ReadSeeker with s2 Index when using
whence=io.SeekEnd
filesize, err = rs.Seek(0, io.SeekEnd)
, expect to get the uncompressed file size, but currently return 0pos, err = rs.Seek(-10, io.SeekEnd)
, expect to get position at last 10-bytes from end of uncompressed file, but currently return 10The text was updated successfully, but these errors were encountered: