|
||
class RFileWriteStream : public RWriteStream;
Supports the writing of a stream to a file.
RWriteStream
- ...
RFileWriteStream
-
Supports the writing of a stream to a file.
Defined in RFileWriteStream
:
Attach(RFile &,TInt)
Associates this stream with an already opened file and prepares the stream for w...Create(RFs &,const TDesC &,TUint)
Creates a new file, associates it with this stream, and prepares the stream for ...Open(RFs &,const TDesC &,TUint)
Opens a file containing a stream and prepares the stream for writing.RFileWriteStream()
Constructs an empty write stream object. RFileWriteStream(RFile &,TInt)
Constructs the write stream object, associates it with an already opened file, a...RFileWriteStream(const MExternalizer< TStreamRef > &)
Replace(RFs &,const TDesC &,TUint)
Creates a new file, associates the file with this stream, and prepares the strea...Temp(RFs &,const TDesC &,TFileName &,TUint)
Creates a temporary file, associates it with this stream, and prepares the strea...Inherited from RWriteStream
:
Attach(MStreamBuf *)
Sets the stream buffer sink for this write stream. The existing sink, if there i...Close()
Commits data to the stream before freeing resources used by the stream. This ens...CommitL()
Ensures that any buffered data is written to the stream. Once committed, it is n...Detach()
Sets the stream buffer sink for this write stream to NULL. The existing sink, if...Pop()
Removes the cleanup item for this write stream object from the cleanup stack. PushL()
Puts a cleanup item for this write stream object onto the cleanup stack. This al...RWriteStream(MStreamBuf *)
Constructs a write stream over the supplied stream buffer. The stream has no ass...RWriteStream(const MExternalizer< TStreamRef > &)
Constructs a write stream with an associated store map. The stream buffer sink i...Release()
Frees resources before abandoning the stream. The function is called after data ...Sink()
Gets the underlying stream buffer for the write stream. This provides access to ...WriteInt16L(TInt)
Writes a TInt value as a 16Â bit value to this stream.WriteInt32L(TInt32)
Writes a TInt32 value as a 32 bit value to this stream.WriteInt8L(TInt)
Writes a TInt value as an 8Â bit value to this stream.WriteL(RReadStream &)
Writes the content of the specified read stream to this write stream.WriteL(RReadStream &,TInt)
Writes data of the specified length from the specified read stream to this strea...WriteL(const TDesC16 &)
Writes the content of the 16 bit descriptor to the stream. No other information ...WriteL(const TDesC16 &,TInt)
Writes data of the specified length from the 16 bit descriptor to the stream. No...WriteL(const TDesC8 &)
Writes the content of the 8 bit descriptor to the stream. No other information i...WriteL(const TDesC8 &,TInt)
Writes data of the specified length from the 8 bit descriptor to the stream. No ...WriteL(const TUint16 *,TInt)
Writes 16 bit data of the specified length from the specified location to this w...WriteL(const TUint8 *,TInt)
Writes 8 bit data of the specified length from the specified location to this wr...WriteReal32L(TReal)
Writes a TReal value as a 32 bit value to this stream.WriteReal64L(TReal64)
Writes a TReal64 value as a 64 bit value to this stream.WriteUint16L(TUint)
Writes a TUint value as a 16 bit value to this stream.WriteUint32L(TUint32)
Writes a TUint32 value as a 32 bit value to this stream.WriteUint8L(TUint)
Writes a TUint value as an 8 bit value to this stream.inline RFileWriteStream(const MExternalizer< TStreamRef > &anExter);
|
IMPORT_C RFileWriteStream(RFile &aFile, TInt aPos=0);
Constructs the write stream object, associates it with an already opened file, and prepares the stream for writing.
|
IMPORT_C TInt Open(RFs &aFs, const TDesC &aName, TUint aFileMode);
Opens a file containing a stream and prepares the stream for writing.
The stream will be written to offset zero in the file.
|
|
IMPORT_C TInt Create(RFs &aFs, const TDesC &aName, TUint aFileMode);
Creates a new file, associates it with this stream, and prepares the stream for writing.
The stream will be written to offset zero in the file.
|
|
IMPORT_C TInt Replace(RFs &aFs, const TDesC &aName, TUint aFileMode);
Creates a new file, associates the file with this stream, and prepares the stream for writing.
The file replaces any existing file of the same name.
The stream will be written to offset zero in the file.
|
|
IMPORT_C TInt Temp(RFs &aFs, const TDesC &aPath, TFileName &aName, TUint aFileMode);
Creates a temporary file, associates it with this stream, and prepares the stream for writing.
The new file is created in the specified path and a unique file name is generated by the file server.
Note that the store framework does not delete a temporary file after it is closed.
The stream will be written to offset zero in the file.
|
|
IMPORT_C void Attach(RFile &aFile, TInt aPos=0);
Associates this stream with an already opened file and prepares the stream for writing.
|