equal
deleted
inserted
replaced
55 |
55 |
56 |
56 |
57 |
57 |
58 //--------------------------------------------------------------------------------------------------------------------------------- |
58 //--------------------------------------------------------------------------------------------------------------------------------- |
59 |
59 |
60 CMediaWTCache::CMediaWTCache(TFatDriveInterface& aDrive) |
60 CMediaWTCache::CMediaWTCache(TDriveInterface& aDrive) |
61 :iDrive(aDrive), iPageSizeLog2(0), iAllPagesValid(EFalse) |
61 :iDrive(aDrive), iPageSizeLog2(0), iAllPagesValid(EFalse) |
62 { |
62 { |
63 iCacheDisabled = EFalse; |
63 iCacheDisabled = EFalse; |
64 iCacheBasePos = 0; |
64 iCacheBasePos = 0; |
65 } |
65 } |
84 @param aNumPages number of cache pages to be created |
84 @param aNumPages number of cache pages to be created |
85 @param aPageSizeLog2 Log2 of the page size in bytes |
85 @param aPageSizeLog2 Log2 of the page size in bytes |
86 |
86 |
87 @return a pointer to the created object. |
87 @return a pointer to the created object. |
88 */ |
88 */ |
89 CMediaWTCache* CMediaWTCache::NewL(TFatDriveInterface& aDrive, TUint32 aNumPages, TUint32 aPageSizeLog2) |
89 CMediaWTCache* CMediaWTCache::NewL(TDriveInterface& aDrive, TUint32 aNumPages, TUint32 aPageSizeLog2) |
90 { |
90 { |
91 #ifndef ENABLE_DEDICATED_DIR_CACHE |
91 #ifndef ENABLE_DEDICATED_DIR_CACHE |
92 //-- dedicated directory cache isn't enabled |
92 //-- dedicated directory cache isn't enabled |
93 (void)aDrive; //-- supress compiler's warning |
93 (void)aDrive; //-- supress compiler's warning |
94 (void)aClusterSizeLog2; |
94 (void)aClusterSizeLog2; |