|
|
|
|
Location:
S32FILE.H
Link against: estor.lib
class RFilePagePool : public TCachePagePool;
Uses a file directly to implement the page pool interface MPagePool.
The pages are written sequentially through the file. You should call Close() to release the file resource after CreateL(), OpenL(), ReplaceL() or Temp().
A file page pool uses a cache to store pages in-memory and to cache frequently accessed pages. You should provide a cache
object (CPageCache) to the pool for this purpose.
MPagePool - Interface to a page pool, the storage abstraction used by the B-trees API
TCachePagePool - Provides a page pool with cached pages
RFilePagePool - Uses a file directly to implement the page pool interface
Defined in RFilePagePool:
Attach(), Close(), Create(), Detach(), ExtendL(), File(), Flush(), FlushL(), Open(), RFilePagePool(), RFilePagePool(), ReadL(), Release(), Replace(), Temp(), WriteL()
Inherited from MPagePool:
Delete(),
DeleteL(),
Pop(),
PushL()
Inherited from TCachePagePool:
AcquireL(),
AllocL(),
AssignL(),
DoDeleteL(),
LockL(),
Purge(),
Set(),
Unlock(),
UpdateL()
IMPORT_C RFilePagePool(CPageCache &aCache);
Constructor with a page cache for the pool.
|
inline TInt Open(RFs &aFs, const TDesC &aName, TUint aFileMode);
Opens a file to use for the page pool.
|
|
inline TInt Create(RFs &aFs, const TDesC &aName, TUint aFileMode);
Creates a new file for the page pool.
|
|
inline TInt Replace(RFs &aFs, const TDesC &aName, TUint aFileMode);
Creates or opens a file for the page pool.
If there is an existing file with the same name, this function overwrites it. If the file does not already exist, it is created.
|
|
inline TInt Temp(RFs &aFs, const TDesC &aPath, TFileName &aName, TUint aFileMode);
Creates and opens a file for the page pool with a unique name.
|
|
inline void Attach(RFile &aFile);
Sets an existing file to be used for the page pool.
|
IMPORT_C TInt Flush();
Flushes the page cache and the file.
|
IMPORT_C void FlushL();
Flushes the page cache and the file, leaving with a system-wide error code if an error occurs.
inline void Detach();
Ends the use of the file for the page pool, but does not close the file.
protected: virtual IMPORT_C TPageRef ExtendL(const TAny *aPage, TPageReclamation aReclamation);
|
|