[xlsb] add optimization for reading sheetData

This commit is contained in:
Vladimir Gorshenkov
2022-02-15 21:42:42 +03:00
parent c83b1d9f67
commit c371fea966
20 changed files with 119 additions and 40 deletions

View File

@ -518,6 +518,17 @@ const size_t BinaryStreamCacheReader::readFromStream(const size_t num_of_records
return records_cache.size();
}
//Return current position in stream
const int BinaryStreamCacheReader::GetRecordPosition()
{
return binaryStream_->GetPos() - records_cache.front()->getDataSize() - records_cache.front()->getSizeOfRecordTypeRecordLength();
}
void BinaryStreamCacheReader::SetRecordPosition(const int position)
{
binaryStream_->Seek(position);
}
// Checks whether the next record is Continue and append its data to the real record if so
void BinaryStreamCacheReader::checkAndAppendContinueData()
{