Skip to content

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

@gyakoo

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.

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