userlibandfileserver/fileserver/sfat32/inc/sl_std.inl
branchRCL_3
changeset 44 3e88ff8f41d5
parent 43 c1f20ce4abcf
--- a/userlibandfileserver/fileserver/sfat32/inc/sl_std.inl	Tue Aug 31 16:34:26 2010 +0300
+++ b/userlibandfileserver/fileserver/sfat32/inc/sl_std.inl	Wed Sep 01 12:34:56 2010 +0100
@@ -178,14 +178,14 @@
     }
 
 
-/** @return reference to the fat table owned by the mount */
+/** @return refrence to the fat table owned by the mount */
 CFatTable& CFatMountCB::FAT() const
 	{
     return(*iFatTable);
     }
 
 /**
-    @return reference to the file system object that has produced this CFatMountCB
+    @return refrence to the file system object that has produced this CFatMountCB
 */
 CFatFileSystem& CFatMountCB::FatFileSystem() const
 	{
@@ -495,7 +495,7 @@
 /**
 Returns the fat table used by the file system for this mount
 
-@return Reference to the Fat table owned by the mount
+@return Refrence to the Fat table owned by the mount
 */
 CFatTable& CFatFileCB::FAT()
 	{return(FatMount().FAT());}
@@ -523,9 +523,9 @@
     }  
 
 void CFatFileCB::IndicateFileSizeModified(TBool aModified) 
-	{
-	iFileSizeModified = aModified;
-	}
+    {
+    iFileSizeModified = aModified;
+    }
 
 //-----------------------------------------------------------------------------
 /** @return ETrue if file attributes' 'Modified' flag is set*/
@@ -645,13 +645,23 @@
     }
 
 
+//-----------------------------------------------------------------------------
+/**
+    @return ETrue if the cluster number aClusterNo is valid, i.e. belongs to the FAT table
+*/
+inline TBool CFatTable::ClusterNumberValid(TUint32 aClusterNo) const 
+    {
+    return (aClusterNo >= KFatFirstSearchCluster) && (aClusterNo < iMaxEntries); 
+    }
+
+
 /**
 @return Maximal number of addresable FAT entries. This value is taken from the owning mount
 */
 inline TUint32 CFatTable::MaxEntries() const
     {
-        ASSERT(iMaxEntries > 0);
-        return iMaxEntries;
+    ASSERT(iMaxEntries > 0);
+    return iMaxEntries;
     }