CMMFDescriptorBuffer Class Reference

class CMMFDescriptorBuffer : public CMMFDataBuffer

This class is a wrapper class to give a descriptor the same API as a CMMFDataBuffer.

The purpose of this class is that components such as codecs can use CMMFDataBuffers transparently without having to be concerned with whether the buffer is a descriptor buffer or a transfer buffer.

Inherits from

Constructor & Destructor Documentation

CMMFDescriptorBuffer()

CMMFDescriptorBuffer()[private, inline]

~CMMFDescriptorBuffer()

IMPORT_C~CMMFDescriptorBuffer()

Member Functions Documentation

BufferSize()

TUint BufferSize()const [virtual]

Returns the buffer size, in bytes.

This is a virtual function that each derived class must implement.

The buffer size in bytes.

ConstructL(TInt)

voidConstructL(TIntaMaxBufferSize)[private]

Parameters

TInt aMaxBufferSize

Data()

TDes8 &Data()[virtual]

Returns a reference to the data contained in the buffer (non const version).

This is a virtual function that each derived class must implement.

A reference to the buffer.

Data()

const TDesC8 &Data()const [virtual]

Returns a reference to the data contained in the buffer (const version).

This is a virtual function that each derived class must implement.

A reference to the buffer.

NewL()

IMPORT_C CMMFDescriptorBuffer *NewL()[static]

NewL(TInt)

IMPORT_C CMMFDescriptorBuffer *NewL(TIntaMaxBufferSize)[static]

Parameters

TInt aMaxBufferSize

ReAllocBufferL(TInt)

IMPORT_C voidReAllocBufferL(TIntaMaxBufferSize)

Parameters

TInt aMaxBufferSize

SetPosition(TUint)

voidSetPosition(TUintaPosition)[virtual]

Sets the current buffer read/write position. Used as read/write position on a buffer where a codec may need several passes on the same buffer.

Parameters

TUint aPositionThe buffer's number.

SetRequestSizeL(TInt)

voidSetRequestSizeL(TIntaSize)[virtual]

Sets the request size.

Used where a component, such as a data source, may not be able to write to the entire maximum length of the buffer (variable bit rate codecs for example).

This is a virtual function that each derived class must implement.

Parameters

TInt aSizeThe requested size, in bytes.

SetStatus(TBufferStatus)

voidSetStatus(TBufferStatusaStatus)[virtual]

Sets the buffer's status.

Parameters

TBufferStatus aStatusThe buffer's status.

Member Data Documentation

TUint8 * iData

TUint8 *iData[private]

TPtr8 iPtr

TPtr8 iPtr[private]