mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-14 00:22:28 +08:00
add sectorcollection
This commit is contained in:
@ -4,8 +4,8 @@ using namespace CFCPP;
|
||||
|
||||
int Sector::MINISECTOR_SIZE = 64;
|
||||
|
||||
Sector::Sector(int size, std::unique_ptr<std::fstream> stream) :
|
||||
size(size), stream(std::move(stream))
|
||||
Sector::Sector(int size, const Stream &stream) :
|
||||
size(size), stream(stream)
|
||||
{}
|
||||
|
||||
Sector::Sector(int size, const std::vector<BYTE>& data) :
|
||||
@ -19,7 +19,7 @@ Sector::Sector(int size) :
|
||||
|
||||
bool Sector::IsStreamed()
|
||||
{
|
||||
if (stream == nullptr || size == MINISECTOR_SIZE)
|
||||
if (stream.GetPointer() == nullptr || size == MINISECTOR_SIZE)
|
||||
return false;
|
||||
|
||||
auto currentPossition = stream->tellg();
|
||||
|
||||
Reference in New Issue
Block a user