Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: s32mem.h
Link against: estor.lib

Class TMemBuf

TMemBuf

Support

Supported from 5.0

Description

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.

Derivation

MStreamBufA stream buffer that provides a generic I/O interface for streamed data
TMemBufA stream buffer that uses plain memory for its implementation
TStreamBufAdds buffering capabilities to a stream buffer

Defined in TMemBuf:
Set(), TMemBuf()

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()

See also:


Construction


TMemBuf()

TMemBuf();

Description

Constructs an empty object.

Call Set() before using the object.

[Top]


Member functions


Set()

void Set(TUint8* aPtr,TUint8* anEnd,TInt aMode=ERead|EWrite);

Description

Sets up the stream to use the specified area of plain memory.

Parameters

TUint8* aPtr

The start address for the area of plain memory that hosts the stream and that also acts as the intermediate buffer.

TUint8* 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.

TInt 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.

See also: