add part of class streamview

This commit is contained in:
Ivan Morozov
2022-06-14 19:41:12 +03:00
parent e049cff2ed
commit e25a2b267d
8 changed files with 513 additions and 16 deletions

View File

@ -78,7 +78,7 @@ void Sector::Dispose(bool disposing)
_disposed = true;
}
std::vector<BYTE> Sector::GetData()
std::vector<BYTE> &Sector::GetData()
{
if (data.empty())
{
@ -89,7 +89,7 @@ std::vector<BYTE> Sector::GetData()
stream->read(reinterpret_cast<char*>(data.data()), size);
}
}
// copy
return data;
}