#include <s32mem.h>
class TMemBuf : public TStreamBuf |
Public Member Functions | |
---|---|
TMemBuf() | |
IMPORT_C void | Set(TUint8 *, TUint8 *, TInt) |
Protected Member Functions | |
---|---|
virtual IMPORT_C TStreamPos | DoSeekL(TMark, TStreamLocation, TInt) |
virtual IMPORT_C void | OverflowL() |
virtual IMPORT_C TInt | UnderflowL(TInt) |
Inherited Enumerations | |
---|---|
MStreamBuf:TRead | |
MStreamBuf:TWrite |
Inherited Type Definitions | |
---|---|
MStreamBuf::TMark | |
TStreamBuf::TArea |
A stream buffer that uses plain memory for its implementation.
A stream of this type is used by RMemWriteStream and RMemReadStream objects. It also has intermediate buffering capabilities.
This is a seekable stream buffer.
See also: RMemWriteStream RMemReadStream
IMPORT_C TStreamPos | DoSeekL | ( | TMark | aMark, |
TStreamLocation | aLocation, | |||
TInt | anOffset | |||
) | [protected, virtual] |
Reimplemented from MStreamBuf::DoSeekL(TMark,TStreamLocation,TInt)
IMPORT_C void | OverflowL | ( | ) | [protected, virtual] |
Reimplemented from TStreamBuf::OverflowL()
Empties the intermediate buffer and resets the start and end points of the write area.
The implementation of this function depends on the way the stream itself is implemented. For example, the in-memory streams have simple implementations.
Sets up the stream to use the specified area of plain memory.
See also: MStreamBuf::TRead MStreamBuf::TWrite
Parameters | |
---|---|
aPtr | The start address for the area of plain memory that hosts the stream and that also acts as the intermediate buffer. |
anEnd | The end address for the area of plain memory that hosts the stream and that also acts as the intermediate buffer. The addressed byte is outside the memory area. |
aMode | The mode in which the stream is to be used. It can be used in either or both read and write modes, represented by ERead and EWrite. |
Reimplemented from TStreamBuf::UnderflowL(TInt)
Re-fills the intermediate buffer and resets the start and end points of the read area.
The implementation of this function depends on the way the stream itself is implemented. For example, the in-memory streams have simple implementations.
Parameters | |
---|---|
aMaxLength | The maximum amount of data required for the intermediate buffer. |