InputStream: allow GetSize() only if KnownSize()
This commit is contained in:
parent
4265e71d6f
commit
d079cda174
@ -229,6 +229,7 @@ public:
|
||||
gcc_pure
|
||||
offset_type GetSize() const {
|
||||
assert(ready);
|
||||
assert(KnownSize());
|
||||
|
||||
return size;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user