Simplify stream availability handling
Just have a simply number of bytes argument to avoid a lot of complexity.
This commit is contained in:
committed by
Lauri Kasanen
parent
92c7695981
commit
57a3c3bba8
@@ -73,7 +73,7 @@ decodeError:
|
||||
|
||||
|
||||
bool HexInStream::fillBuffer(size_t maxSize, bool wait) {
|
||||
if (!in_stream.check(2, 1, wait))
|
||||
if (!in_stream.check(2, wait))
|
||||
return false;
|
||||
|
||||
const U8* iptr = in_stream.getptr();
|
||||
|
||||
Reference in New Issue
Block a user