input/InputStream: make IsEOF() and IsAvailable() const

This commit is contained in:
Max Kellermann
2019-05-29 13:31:54 +02:00
parent 40a48cfba0
commit 971450f0d4
22 changed files with 42 additions and 40 deletions

View File

@@ -99,7 +99,7 @@ ProxyInputStream::Seek(std::unique_lock<Mutex> &lock,
}
bool
ProxyInputStream::IsEOF() noexcept
ProxyInputStream::IsEOF() const noexcept
{
return input && input->IsEOF();
}
@@ -114,7 +114,7 @@ ProxyInputStream::ReadTag() noexcept
}
bool
ProxyInputStream::IsAvailable() noexcept
ProxyInputStream::IsAvailable() const noexcept
{
return input && input->IsAvailable();
}