|
||
class TStreamExchange;
Manages access to a shared host buffer for shared stream buffers.
The class maintains independent markers for the shared stream buffer that has most recently read or written to the shared host buffer.
This is the way in which multiple requests from the same shared stream buffer are handled without the need for repeated seeking. The shared host buffer only needs to seek when a new shared buffer needs to use it
Defined in TStreamExchange
:
Host()
Gets a pointer to the stream buffer that acts as the shared host.HostL()
Gets a pointer to the stream buffer that acts as the shared host, and leaves if ...IsActive()const
Tests whether this object is using a stream buffer that is acting as shared host...Release()
Releases the reference to the shared host, and drops any active read or write ma...Share(MStreamBuf *)
Tells the object to use the specified stream buffer that will act as the shared ...SizeL()const
Gets the size of the shared host buffer.TStreamExchange()
Constructs an empty object.TStreamExchange(MStreamBuf *)
Constructs the object, specifying the stream buffer that will act as the shared ...inline TStreamExchange();
Constructs an empty object.
Call TStreamExchange::Share(MStreamBuf *)
to prepare for access to a shared stream buffer.
inline TStreamExchange(MStreamBuf *aHost);
Constructs the object, specifying the stream buffer that will act as the shared host.
|
inline void Share(MStreamBuf *aHost);
Tells the object to use the specified stream buffer that will act as the shared host.
|
inline TBool IsActive() const;
Tests whether this object is using a stream buffer that is acting as shared host.
|
IMPORT_C MStreamBuf* Host();
Gets a pointer to the stream buffer that acts as the shared host.
The function refreshes the active read/write marks and gives the caller exclusive use of the shared host.
|
IMPORT_C MStreamBuf* HostL();
Gets a pointer to the stream buffer that acts as the shared host, and leaves if this object is not active.
The function refreshes the active read/write marks and gives the caller exclusive use of the shared host.
|
TStreamExchange::IsActive()const
Tests whether this object is using a stream buffer that is acting as shared host...IMPORT_C void Release();
Releases the reference to the shared host, and drops any active read or write marks.
IMPORT_C TInt SizeL() const;
Gets the size of the shared host buffer.
|