class CFileCB::MExtendedFileInterface |
to support fair scheduling (by use of the aOffset parameter)
to enable large file support
Public Member Functions | |
---|---|
void | ReadL ( TInt64 , TInt &, TDes8 *, const RMessagePtr2 &, TInt ) |
void | SetSizeL ( TInt64 ) |
void | WriteL ( TInt64 , TInt &, const TDesC8 *, const RMessagePtr2 &, TInt ) |
void | ReadL | ( | TInt64 | aPos, |
TInt & | aLength, | |||
TDes8 * | aDes, | |||
const RMessagePtr2 & | aMessage, | |||
TInt | aOffset | |||
) | [pure virtual] |
Functionally equivalent to CFileCB::ReadL() , but supports large files and fair scheduling
Reads a specified number of bytes from the open file starting at the specified postition, and writes the result into a descriptor.
TInt64 aPos | Represents a position relative to the start of the file where ReadL() should start to read. Note that the filesystem may not support positions above KMaxTInt, in which case it leaves with KErrNotSupported. |
TInt & aLength | On entry, specifies the number of bytes to be read from the file. On return, this contains the number of bytes read, this value is not valid if the function leaves. |
TDes8 * aDes | Pointer to a descriptor into which the data is written. |
const RMessagePtr2 & aMessage | A reference to a client message or an RLocalMessage. |
TInt aOffset | The offset into the descriptor where the data is to be written. This is non-zero if the read was fair-scheduled |
void | SetSizeL | ( | TInt64 | aSize | ) | [pure virtual] |
Functionally equivalent to CFileCB::SetSizeL() , but supports large files
Extends or truncates the file by re-setting the file size.
The function does not change the iModified and iSize attributes of the file object: this is done by the file server. If the file is extended, nothing is written in the extended area.
The function leaves with a suitable error code when an error is to detected.
TInt64 aSize | The new file size in bytes. |
void | WriteL | ( | TInt64 | aPos, |
TInt & | aLength, | |||
const TDesC8 * | aDes, | |||
const RMessagePtr2 & | aMessage, | |||
TInt | aOffset | |||
) | [pure virtual] |
Functionally equivalent to CFileCB::WriteL() , but supports large files and fair scheduling
Writes data to the open file.
TInt64 aPos | Represents a position relative to the start of the file where WriteL() starts to write. Note that the filesystem may not support positions above KMaxTInt, in which case it leaves with KErrNotSupported. |
TInt & aLength | Specifies the number of bytes to be written to the file. On return this is the number of bytes written, this value is not valid if the function leaves. |
const TDesC8 * aDes | Pointer to a descriptor containing the data to be written to the file. |
const RMessagePtr2 & aMessage | A reference to a client message or an RLocalMessage |
TInt aOffset | The offset into the descriptor where the data is to be read from. This is non-zero if the read was fair-scheduled |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.