CMountCB::MFileExtendedInterface Class Reference

class CMountCB::MFileExtendedInterface

CMountCB::MFileExtendedInterface interface provides extended interface for CMountCB to read a specified section of large file (size greater than 2GB - 1).

The interface could be retrieved by calling CMountCB::GetInterface() with EFileExtendedInterface as an argument.

Sub classes of CMountCB who does support large file access will need to multiple-inherit with this class and implement the interface. The implementation of the interface will be retrieved via GetInterface() and provided to user by non-virtual APIs to avoid breaking binary compatibility.

NOTE: Do not try to delete CMountCB::MFileExtendedInterface interface pointer!

CMountCB::GetInterface()

Public Member Functions
void ReadSection64L (const TDesC &, TInt64 , TAny *, TInt , const RMessagePtr2 &)

Member Functions Documentation

ReadSection64L(const TDesC &, TInt64, TAny *, TInt, const RMessagePtr2 &)

void ReadSection64L ( const TDesC & aName,
TInt64 aPos,
TAny * aTrg,
TInt aLength,
const RMessagePtr2 & aMessage
) [pure virtual]

Reads a specified section of the file, regardless of the file's lock state.

The function should leave with a suitable error code if it cannot complete successfully for any reason.

This function should be implemented in file systems supporting files of size greater than 2GB - 1.

leave
KErrEof aPos is past the end of the file.
CMountCB::ReadSectionL()

Parameters

const TDesC & aName A reference to a descriptor containing the full name of the file to be read from
TInt64 aPos The byte position to start reading from.
TAny * aTrg A pointer to the buffer into which data is to be read.
TInt aLength The length of data to be read, in bytes.
const RMessagePtr2 & aMessage