fs/io/BufferedReader: add missing Consume() call
This commit is contained in:
parent
31ae50b137
commit
5f66af3712
|
@ -59,6 +59,7 @@ BufferedReader::ReadFromBuffer(WritableBuffer<void> dest)
|
|||
auto src = Read();
|
||||
size_t nbytes = std::min(src.size, dest.size);
|
||||
memcpy(dest.data, src.data, nbytes);
|
||||
Consume(nbytes);
|
||||
return nbytes;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue