mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-11 14:00:32 +08:00
30 lines
598 B
C++
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);
|
|
}
|