class TMemBuf : public TStreamBuf |
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.
Public Member Functions | |
---|---|
TMemBuf() | |
IMPORT_C void | Set(TUint8 *, TUint8 *, TInt) |
Protected Member Functions | |
---|---|
IMPORT_C TStreamPos | DoSeekL(TMark, TStreamLocation, TInt) |
IMPORT_C void | OverflowL() |
IMPORT_C TInt | UnderflowL(TInt) |
Private Member Functions | |
---|---|
TUint8 * | Base() |
TUint8 * | End() |
Inherited Enumerations | |
---|---|
MStreamBuf:TRead | |
MStreamBuf:TWrite |
Private Attributes | |
---|---|
TUint8 * | iBase |
IMPORT_C TStreamPos | DoSeekL | ( | TMark | aMark, |
TStreamLocation | aLocation, | |||
TInt | anOffset | |||
) | [protected, virtual] |
TMark aMark | |
TStreamLocation aLocation | |
TInt anOffset |
IMPORT_C void | OverflowL | ( | ) | [protected, virtual] |
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.
IMPORT_C void | Set | ( | TUint8 * | aPtr, |
TUint8 * | anEnd, | |||
TInt | aMode = ERead|EWrite | |||
) |
IMPORT_C TInt | UnderflowL | ( | TInt | aMaxLength | ) | [protected, virtual] |
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.
The amount of data available in the intermediate buffer.
TInt aMaxLength | The maximum amount of data required for the intermediate buffer. |