Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
Loading...
Searching...
No Matches
RRawDisk Class Reference

Enables direct disk access. More...

#include <f32file.h>

Inheritance diagram for RRawDisk:
RSubSessionBase

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.
 

Detailed Description

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.

API status
Published to all clients. Released API.

Definition at line 2664 of file f32file.h.

Member Function Documentation

◆ Close()

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)

◆ Open()

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.

Parameters
aFsThe file server session.
aDriveThe drive containing the disk to be accessed. Specify a drive in the range EDriveA to EDriveZ for drives A to Z.
capability
TCB

(generated from Symbian Developer Library)

◆ Read()

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.

Parameters
aPosThe position on the disk at which to begin reading.
aDesThe 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.

capability
TCB

(generated from Symbian Developer Library)

◆ Write()

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.

Parameters
aPosThe position at which to begin writing.
aDesThe 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.

capability
TCB

(generated from Symbian Developer Library)


The documentation for this class was generated from the following files: