RMemReadStream Class Reference

class RMemReadStream : public RReadStream

Supports the reading of a stream from a pointer of any type.

TMemBuf RReadStream

Inherits from

Constructor & Destructor Documentation

RMemReadStream()

RMemReadStream ( ) [inline]

Constructs an empty object.

Call Open() to prepare the stream for reading.

RMemReadStream(const TAny *, TInt)

IMPORT_C RMemReadStream ( const TAny * aPtr,
TInt aLength
)

Constructs the RMemReadStream object and prepares the stream hosted in the specified plain memory location for reading.

RMemReadStream::Open

Parameters

const TAny * aPtr The start address for the area of memory that will be the source of this stream.
TInt aLength The length of the area of memory.

Member Functions Documentation

Open(const TAny *, TInt)

IMPORT_C void Open ( const TAny * aPtr,
TInt aLength
)

Open a stream that reads from a pointer of any type.

To close the stream and free its resources call Close()

TMemBuf::Set RReadStream::Attach

Parameters

const TAny * aPtr The start address for the area of memory that will be the source of this stream.
TInt aLength The length of the area of memory.

Member Data Documentation

TMemBuf iSource

TMemBuf iSource [private]