RMemReadStream Class Reference

#include <s32mem.h>

class RMemReadStream : public RReadStream

Inherits from

Detailed Description

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

See also: TMemBuf RReadStream

Constructor & Destructor Documentation

RMemReadStream ( )

RMemReadStream()[inline]

Constructs an empty object.

Call Open() to prepare the stream for reading.

RMemReadStream ( const TAny *, TInt )

IMPORT_CRMemReadStream(const TAny *aPtr,
TIntaLength
)

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

See also: RMemReadStream::Open

ParameterDescription
aPtrThe start address for the area of memory that will be the source of this stream.
aLengthThe length of the area of memory.

Member Function Documentation

Open ( const TAny *, TInt )

IMPORT_C voidOpen(const TAny *aPtr,
TIntaLength
)

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

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

See also: TMemBuf::Set RReadStream::Attach

ParameterDescription
aPtrThe start address for the area of memory that will be the source of this stream.
aLengthThe length of the area of memory.