EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Please tell me the description of red lines...

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
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;

Posted: 01/29/2012 03:52:39
by Eugene Mayevski (Team)

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



Topic viewed 649 times

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


Back to top

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

Got it!