diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-3AFA592E-ED32-5AC6-B331-E7191CF2D5E2.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-3AFA592E-ED32-5AC6-B331-E7191CF2D5E2.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,50 @@ + + + + + +Checking +the Availability of Memory

This section explains the System Utility functionality of checking +the disk space.

Perform one or more of the following steps based +on the requirements:

+ + +To check whether the disk space is below the critical level in FFS (also +called the system drive), call FFSSpaceBelowCriticalLevelL() function. + + +To check whether the disk space is below the critical level in MMC storage, +call MMCSpaceBelowCriticalLevelL() function. + + +To check whether the disk space is below the critical level on a disk +drive, call DiskSpaceBelowCriticalLevelL() function. + + +

The functions return ETrue if the number of bytes +to be written takes the memory below the critical level, else returns EFalse.

+Example

The following is an code fragment illustrating +how to check whether the disk space is below critical level:

TInt dataSize = 500; +if ( SysUtil::DiskSpaceBelowCriticalLevelL( &iFsSession, dataSize, EDriveC ) ) + { + // Cannot write the data, there's not enough free space on disk. + ... + } +else + { + // It's ok to actually write the data. + ... + } +
+
+System Utilities +Overview +Retrieving +the Software and Language Versions +
\ No newline at end of file