Location:
s32share.h
Link against: estor.lib
RShareBuf
Supported from 5.0
A shared stream buffer.
This class is part of the framework used by CFileStore
that allows multiple stream buffers to concurrently access the single hosting file buffer, an RFileBuf
object.
Each shared stream buffer maintains its own read and write positions.
Read and write operations to RShareBuf
are directed through separate TStreamMark
objects, one for read and one for write. The TStreamMark
objects re-direct read/write operations through a TStreamExchange
object to the RFileBuf
object, which handles the actual file read and write operations.
This stream buffer can also be accessed through RShareReadStream
and RShareWriteStream
objects.
|
Defined in RShareBuf
:
Open()
, RShareBuf()
Inherited from MStreamBuf
:
SeekL()
,
Close()
,
DoReadL()
,
DoRelease()
,
DoSeekL()
,
DoSynchL()
,
DoWriteL()
,
ERead
,
EWrite
,
PushL()
,
Read()
,
ReadL()
,
Release()
,
SeekL()
,
SizeL()
,
Synch()
,
SynchL()
,
TMark
,
TRead
,
TWrite
,
TellL()
,
Write()
,
WriteL()
RShareBuf();
Constructs an empty shared stream buffer object.
Call one of the Open()
functions to prepare the stream.
void Open(TStreamExchange& aHost,TStreamPos aPos,TInt aMode=ERead|EWrite);
Prepares the shared stream buffer for streaming.
The function sets the read mark and/or the write mark to the specified position within the host stream.
|
void Open(TStreamExchange& aHost,TInt aMode=ERead|EWrite);
Prepares the shared stream buffer for streaming.
The function sets the read mark and/or the write mark to the beginning of the host stream.
|