trying to add sectorcollection

This commit is contained in:
Ivan Morozov
2022-06-09 20:54:21 +03:00
parent e49127b686
commit 87c3d6cf9d
5 changed files with 138 additions and 2 deletions

View File

@ -2,7 +2,28 @@
using namespace CFCPP;
CompoundFile::CompoundFile()
CompoundFile::CompoundFile() :
CompoundFile(CFSVersion::Ver_3, CFSConfiguration::Default)
{}
CompoundFile::CompoundFile(CFSVersion cfsVersion, CFSConfiguration configFlags)
{
}
void CompoundFile::OnSizeLimitReached()
{
Sector rangeLockSector = new Sector(GetSectorSize(), sourceStream);
sectors.Add(rangeLockSector);
rangeLockSector.Type = SectorType.RangeLockSector;
_transactionLockAdded = true;
_lockSectorId = rangeLockSector.Id;
}
int CompoundFile::GetSectorSize()
{
return 2 << (header.sectorShift - 1);
}