| class CResourceFile : public CBase |
Accesses a resource file or resource file buffer and reads the resource data into a buffer.
Interpretation of the data is achieved using the RResourceReader class. CResourceFile methods behaviour when some problem occurs - it leaves with an error code. Most of the time the error code will be KErrCorrupt.
RResourceReader
| Public Member Functions | |
|---|---|
| ~CResourceFile() | |
| IMPORT_C HBufC8 * | AllocReadL(TInt) |
| IMPORT_C HBufC8 * | AllocReadLC(TInt) |
| IMPORT_C void | ConfirmSignatureL(TInt) |
| IMPORT_C void | ConfirmSignatureL() |
| IMPORT_C CResourceFile * | NewL(RFs &, const TDesC &, TUint, TInt) |
| IMPORT_C CResourceFile * | NewL(const TDesC8 &) |
| IMPORT_C CResourceFile * | NewLC(RFs &, const TDesC &, TUint, TInt) |
| IMPORT_C TInt | Offset() |
| IMPORT_C TBool | OwnsResourceIdL(TInt) |
| IMPORT_C void | ReadL(TDes8 &, TInt) |
| IMPORT_C TInt | SignatureL() |
| IMPORT_C TUidType | UidType() |
| Private Member Functions | |
|---|---|
| CResourceFile() | |
| CResourceFile(const CResourceFile &) | |
| void | ConstructL(RFs &, const TDesC &, TUint, TInt) |
| void | ConstructL(const TDesC8 &) |
| RResourceFileImpl * | Impl() |
| const RResourceFileImpl * | Impl() |
| CResourceFile & | operator=(const CResourceFile &) |
| Private Member Enumerations | |
|---|---|
| enum | anonymous { KRscFileSize = 24 } |
| Private Attributes | |
|---|---|
| TUint8 | iImpl |
| CResourceFile | ( | const CResourceFile & | ) | [private] |
| const CResourceFile & |
| void | ConstructL | ( | RFs & | aFs, |
| const TDesC & | aName, | |||
| TUint | aFileOffset, | |||
| TInt | aFileSize | |||
| ) | [private] | |||
| void | ConstructL | ( | const TDesC8 & | aRscFileBuffer | ) | [private] |
| const TDesC8 & aRscFileBuffer |
| IMPORT_C CResourceFile * | NewL | ( | RFs & | aFs, |
| const TDesC & | aName, | |||
| TUint | aFileOffset, | |||
| TInt | aFileSize | |||
| ) | [static] | |||
| IMPORT_C CResourceFile * | NewL | ( | const TDesC8 & | aRscFileBuffer | ) | [static] |
| const TDesC8 & aRscFileBuffer |
| IMPORT_C CResourceFile * | NewLC | ( | RFs & | aFs, |
| const TDesC & | aName, | |||
| TUint | aFileOffset, | |||
| TInt | aFileSize | |||
| ) | [static] | |||
| IMPORT_C TBool | OwnsResourceIdL | ( | TInt | aResourceId | ) | const |
| TInt aResourceId |
| CResourceFile & | operator= | ( | const CResourceFile & | ) | [private] |
| const CResourceFile & |