Skip to content

Need to clear eofbit in the ifstream of the NativeFile before seekg #12

Description

@gyakoo

Hi, nice library. I'm using it to read a binary file and jumping back and forth using Seek.

For the NativeFile implementation, seekg() call was failing because the eofbit was set, so I added a call to m_Stream.clear() right before m_stream.seekg() and that worked.

Not sure if it's the best implementation but just a heads up.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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