Files
core/Common/cppcf/compoundfile.cpp
2022-06-09 20:54:21 +03:00

30 lines
598 B
C++

#include "compoundfile.h"
using namespace CFCPP;
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);
}