EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Please tell me the description of red lines...

Also by EldoS: BizCrypto
Components for BizTalk® and SQL Server® Integration Services that let you securely store and transfer information in your business automation solutions.
#18841
Posted: 01/28/2012 20:27:53
by martin kim (Basic support level)
Joined: 01/28/2012
Posts: 4

- VDisk(C#)

private void CbFsGetVolumeSize(
object sender,
ref long TotalNumberOfSectors,
ref long NumberOfFreeSectors
)
{

long TotalSpace = 1000000 * mCbFs.SectorSize;

TotalNumberOfSectors = TotalSpace / mCbFs.SectorSize;
NumberOfFreeSectors = (TotalSpace - CalculateFolderSize(g_DiskContext) + mCbFs.SectorSize/2) / mCbFs.SectorSize;


}
#18845
Posted: 01/29/2012 03:52:39
by Eugene Mayevski (EldoS Corp.)

First value is just a random value, chosen for it being looking good.

Second is an operation of rounding the calculated value up to sector size.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 562 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!