-
Notifications
You must be signed in to change notification settings - Fork 6
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
Fix buffered seek #118
Fix buffered seek #118
Conversation
When I built this via the ExternalBuilder Jenkins task, compilation errors seem to be due to missing the |
e29d735
to
e04dd3e
Compare
try now? |
ASSERT_EQ(0, bs.Read(buf, sizeof(buf))); | ||
|
||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Two extraneous newlines
m_readOffset = std::min<std::streamoff>(std::max<std::streamoff>(0, pos), m_lastValidByte); | ||
m_eof = m_readOffset != pos && m_readOffset > 0; | ||
return this; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing newline at EOF
@@ -42,5 +42,6 @@ namespace leap { | |||
std::streamsize Read(void* pBuf, std::streamsize ncb) override; | |||
std::streamsize Skip(std::streamsize ncb) override; | |||
std::streamsize Length(void) override; | |||
IInputStream* Seek(std::streampos off) override; | |||
}; | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here too although it was this way before your change.
We should add an automated check for those formatting issues... |
I finally managed to run |
BufferedStream did not implement Seek. This function is vital to some downstream functionality.