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

@@ -56,7 +56,7 @@ BufferingInputStream::Check()
}
bool
BufferingInputStream::IsAvailable(size_t offset) noexcept
BufferingInputStream::IsAvailable(size_t offset) const noexcept
{
if (offset >= size() || error)
return true;