mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-14 02:37:46 +08:00
trying to add sectorcollection
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user