Location:
s32mem.h
Link against: estor.lib
TBufBuf
Supported from 5.0
A stream buffer that uses a dynamic buffer for its implementation.
A stream of this type is used by RBufWriteStream
and RBufReadStream
objects. It also has intermediate buffering capabilities.
This is a seekable stream buffer.
There are three write modes:
insert mode - inserts new data into the buffer at the offset passed to Set()
overwrite mode - replaces the data in the buffer starting at the offset passed to Set()
. Once the end of the buffer is reached, it is automatically extended as more data is written. This is the default mode.
truncate mode - truncates the buffer to the offset passed to Set()
before data is written, extending the buffer.
When writing, the buffer size as reported by CBufBase::Size()
may be larger than the data written to the stream. To synchronise the buffer's reported size with the stream, call the MStreamBuf::SynchL()
function.
Note that this object never takes ownership of the dynamic buffer, the CBufBase
type object.
|
Defined in TBufBuf
:
(Anonymous)
, EInsert
, ETruncate
, Set()
, TBufBuf()
Inherited from MStreamBuf
:
SeekL()
,
Close()
,
DoRelease()
,
DoSeekL()
,
DoSynchL()
,
ERead
,
EWrite
,
PushL()
,
Read()
,
ReadL()
,
Release()
,
SeekL()
,
SizeL()
,
Synch()
,
SynchL()
,
TMark
,
TRead
,
TWrite
,
TellL()
,
Write()
,
WriteL()
Inherited from TStreamBuf
:
Avail()
,
DoReadL()
,
DoWriteL()
,
End()
,
OverflowL()
,
Ptr()
,
SetBuf()
,
SetEnd()
,
SetPtr()
,
TArea
,
UnderflowL()
void Set(CBufBase& aBuf,TInt aPos,TInt aMode=ERead|EWrite);
Sets up the stream to use the specified dynamic buffer.
|