|
Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
|
Enables direct disk access. More...
#include <f32file.h>
Public Member Functions | |
| IMPORT_C TInt | Open (RFs &aFs, TInt aDrive) |
| Opens a direct access channel to the disk. | |
| IMPORT_C void | Close () |
| Closes the direct access channel to the disk, and allows other resources to access the disk. | |
| IMPORT_C TInt | Read (TInt64 aPos, TDes8 &aDes) |
| Reads directly from the disk. | |
| IMPORT_C TInt | Write (TInt64 aPos, TDesC8 &aDes) |
| Writes directly to the disk. | |
Public Member Functions inherited from RSubSessionBase | |
| TInt | SubSessionHandle () const |
| Gets the sub-session handle number. | |
Additional Inherited Members | |
Protected Member Functions inherited from RSubSessionBase | |
| RSubSessionBase () | |
| Default constructor. | |
| IMPORT_C const RSessionBase | Session () const |
| Returns a copy of the session associated with this sub-session. | |
| TInt | CreateSubSession (const RSessionBase &aSession, TInt aFunction, const TIpcArgs &aArgs) |
| Creates a new sub-session within an existing session. | |
| TInt | CreateSubSession (const RSessionBase &aSession, TInt aFunction) |
| Creates a new sub-session within an existing session. | |
| IMPORT_C TInt | CreateAutoCloseSubSession (RSessionBase &aSession, TInt aFunction, const TIpcArgs &aArgs) |
| Creates a new sub-session within an existing session. | |
| IMPORT_C void | CloseSubSession (TInt aFunction) |
| Closes the sub-session. | |
| TInt | Send (TInt aFunction, const TIpcArgs &aArgs) const |
| Sends a blind message to the server - no reply is expected. | |
| void | SendReceive (TInt aFunction, const TIpcArgs &aArgs, TRequestStatus &aStatus) const |
| Sends a message to the server and waits asynchronously for the reply. | |
| TInt | SendReceive (TInt aFunction, const TIpcArgs &aArgs) const |
| Sends a message to the server and waits synchronously for a reply. | |
| TInt | Send (TInt aFunction) const |
| Sends a blind message to the server - no reply is expected. | |
| void | SendReceive (TInt aFunction, TRequestStatus &aStatus) const |
| Sends a message to the server and waits asynchronously for the reply. | |
| TInt | SendReceive (TInt aFunction) const |
| Sends a message to the server and waits synchronously for a reply. | |
Enables direct disk access.
No other resources can access the disk while direct access to it is in effect.
This class is not intended for user derivation.
| IMPORT_C void RRawDisk::Close | ( | ) |
Closes the direct access channel to the disk, and allows other resources to access the disk.
(generated from Symbian Developer Library)
| IMPORT_C TInt RRawDisk::Open | ( | RFs & | aFs, |
| TInt | aDrive | ||
| ) |
Opens a direct access channel to the disk.
Other resources are disabled from accessing the disk until Close() is called.
Note that if any resources are currently open on the disk, an error is returned.
| aFs | The file server session. |
| aDrive | The drive containing the disk to be accessed. Specify a drive in the range EDriveA to EDriveZ for drives A to Z. |
(generated from Symbian Developer Library)
| IMPORT_C TInt RRawDisk::Read | ( | TInt64 | aPos, |
| TDes8 & | aDes | ||
| ) |
Reads directly from the disk.
The function reads a number of bytes into the specified descriptor from the disk, beginning at the specified position.
| aPos | The position on the disk at which to begin reading. |
| aDes | The descriptor into which data is to be read. On return aDes contains the data read. |
Panic condition: User In debug builds, the media driver panics if aPos is larger than the size of the physical media or if the end address, given by aPos + the maximum length of the descriptor, is greater than the size of the physical media.
(generated from Symbian Developer Library)
| IMPORT_C TInt RRawDisk::Write | ( | TInt64 | aPos, |
| TDesC8 & | aDes | ||
| ) |
Writes directly to the disk.
The function writes the contents of the specified descriptor to the disk at position aPos.
| aPos | The position at which to begin writing. |
| aDes | The descriptor containing the data to be written to the disk. |
Panic condition: User In debug builds, the media driver panics if aPos is larger than the size of the physical media or if the end address, given by aPos + the maximum length of the descriptor, is greater than the size of the physical media.
(generated from Symbian Developer Library)