Increate total read length while reading

This commit is contained in:
FawnD2 2020-05-03 22:54:28 +03:00
parent b4898bdd19
commit 6b2e97fd56

View File

@ -27,6 +27,7 @@ ArrowBufferedInputStream::ArrowBufferedInputStream(ReadBuffer & istr_) : istr{is
::arrow::Status ArrowBufferedInputStream::Read(int64_t nbytes, int64_t * bytes_read, void * out)
{
*bytes_read = istr.read(reinterpret_cast<char *>(out), nbytes);
total_length += *bytes_read;
return ::arrow::Status::OK();
}