Skip to content

Incompatible seek function of the s2.ReadSeeker if 'whence' is using 'io.SeekEnd' #574

@jlnieh

Description

@jlnieh

Incompatible behavior to use the Seek function of the s2.ReadSeeker with s2 Index when using whence=io.SeekEnd

  • Version: v1.15.2
  • Issue description:
    • filesize, err = rs.Seek(0, io.SeekEnd), expect to get the uncompressed file size, but currently return 0
    • pos, err = rs.Seek(-10, io.SeekEnd), expect to get position at last 10-bytes from end of uncompressed file, but currently return 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions