new Stream for StreamView

This commit is contained in:
Ivan Morozov
2022-08-03 17:23:53 +03:00
parent ad10681ba0
commit 58f2b9d3f0
12 changed files with 161 additions and 129 deletions

View File

@ -76,7 +76,7 @@ std::vector<BYTE> &Sector::GetData()
data = std::vector<BYTE>(size, 0);
if (IsStreamed())
{
stream->seekg(size + id * size, std::ios_base::beg);
stream->seek(size + id * size, std::ios_base::beg);
stream->read(reinterpret_cast<char*>(data.data()), size);
}
}