InputStream: allow GetSize() only if KnownSize()

This commit is contained in:
Max Kellermann 2014-08-19 21:02:00 +02:00
parent 4265e71d6f
commit d079cda174

View File

@ -229,6 +229,7 @@ public:
gcc_pure
offset_type GetSize() const {
assert(ready);
assert(KnownSize());
return size;
}