userlibandfileserver/fileserver/sfat32/inc/fat_table32.h
branchRCL_3
changeset 42 a179b74831c9
parent 22 2f92ad2dc5db
child 43 c1f20ce4abcf
equal deleted inserted replaced
41:0ffb4e86fcc9 42:a179b74831c9
    48     //-- overrides from th ebase class
    48     //-- overrides from th ebase class
    49     TUint32 ReadL(TUint32 aFatIndex) const;
    49     TUint32 ReadL(TUint32 aFatIndex) const;
    50     void WriteL(TUint32 aFatIndex, TUint32 aValue);
    50     void WriteL(TUint32 aFatIndex, TUint32 aValue);
    51     void MountL(const TMountParams& aMountParam);
    51     void MountL(const TMountParams& aMountParam);
    52 
    52 
    53     TInt64 DataPositionInBytes(TUint32 aCluster) const;
    53     TInt64 DataPositionInBytesL(TUint32 aCluster) const;
    54 
    54 
    55     void InitializeL();
    55     void InitializeL();
    56     void Dismount(TBool aDiscardDirtyData);
    56     void Dismount(TBool aDiscardDirtyData);
    57     void FlushL();
    57     void FlushL();
    58     
    58     
   155     void MountL(const TMountParams& aMountParam);
   155     void MountL(const TMountParams& aMountParam);
   156 
   156 
   157 
   157 
   158     TUint32 ReadL(TUint32 aFatIndex) const;
   158     TUint32 ReadL(TUint32 aFatIndex) const;
   159     void WriteL(TUint32 aFatIndex, TUint32 aValue);
   159     void WriteL(TUint32 aFatIndex, TUint32 aValue);
   160     TInt64 DataPositionInBytes(TUint32 aCluster) const;
   160     TInt64 DataPositionInBytesL(TUint32 aCluster) const;
   161     void FreeClusterListL(TUint32 aCluster);
   161     void FreeClusterListL(TUint32 aCluster);
   162     TUint32 AllocateSingleClusterL(TUint32 aNearestCluster);
   162     TUint32 AllocateSingleClusterL(TUint32 aNearestCluster);
   163     void ExtendClusterListL(TUint32 aNumber, TUint32& aCluster);
   163     void ExtendClusterListL(TUint32 aNumber, TUint32& aCluster);
   164     TUint32 AllocateClusterListL(TUint32 aNumber,TUint32 aNearestCluster);
   164     TUint32 AllocateClusterListL(TUint32 aNumber,TUint32 aNearestCluster);
   165     
   165     
   174     inline void WriteFatTable(TInt aFatIndex,TInt aFatValue,TInt anIndirectionTableValue);
   174     inline void WriteFatTable(TInt aFatIndex,TInt aFatValue,TInt anIndirectionTableValue);
   175     inline void ReadIndirectionTable(TUint32& aCluster) const;
   175     inline void ReadIndirectionTable(TUint32& aCluster) const;
   176     inline void WriteIndirectionTable(TInt aFatIndex,TInt aValue);
   176     inline void WriteIndirectionTable(TInt aFatIndex,TInt aValue);
   177     inline TUint8* MemCopy(TAny* aTrg,const TAny* aSrc,TInt aLength);
   177     inline TUint8* MemCopy(TAny* aTrg,const TAny* aSrc,TInt aLength);
   178     inline TUint8* MemCopyFillZ(TAny* aTrg, TAny* aSrc, TInt aLength);
   178     inline TUint8* MemCopyFillZ(TAny* aTrg, TAny* aSrc, TInt aLength);
   179     inline void ZeroFillCluster(TInt aCluster);
   179     inline void ZeroFillClusterL(TInt aCluster);
   180     
   180     
   181     void UpdateIndirectionTable(TUint32 aStartCluster,TUint32 anEndCluster,TInt aNum);
   181     void UpdateIndirectionTable(TUint32 aStartCluster,TUint32 anEndCluster,TInt aNum);
   182 
   182 
   183 protected:
   183 protected:
   184 
   184