CMMFDataBuffer Class Reference

#include <mmf/server/mmfdatabuffer.h>

Link against: mmfserverbaseclasses.lib

class CMMFDataBuffer : public CMMFBuffer

Inherits from

Detailed Description

This class is an abstract class for databuffers that can be presented in the form of a descriptor. A constructor is provided which instantiates a CMMFDescriptorBuffer buffer by default.

See also: CMMFDescriptorBuffer

Constructor & Destructor Documentation

CMMFDataBuffer ( TUid )

CMMFDataBuffer(TUidaType)[protected, inline]

Protected constructor.

~CMMFDataBuffer ( )

~CMMFDataBuffer()[inline, virtual]

Destructor.

Member Function Documentation

BufferSize ( )

TUint BufferSize()const [pure virtual]

Returns the buffer size, in bytes.

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

Return Value
The buffer size in bytes.

Data ( )

TDes8 &Data()[pure 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.

Return Value
A reference to the buffer.

Data ( )

const TDesC8 &Data()const [pure virtual]

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

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

Return Value
A reference to the buffer.

NewL ( )

IMPORT_C CMMFDataBuffer *NewL()[static]

Method to instantiate a CMMFDataBuffer defaults to a CMMFDescriptorBuffer to maintain buffer compatiblity with MFAD ie. instantiating a CMMFDataBuffer defaults to creating a CMMFDescriptorBuffer. This NewL creates a CMMFDescriptorBuffer with a default size of 32 bytes.

Return Value
A pointer to a new CMMFDescriptorBuffer.

NewL ( TInt )

IMPORT_C CMMFDataBuffer *NewL(TIntaMaxBufferSize)[static]

Method to instantiate a CMMFDataBuffer defaults to a CMMFDescriptorBuffer by default to maintain buffer compatiblity with MFAD ie. instantiating a CMMFDataBuffer defaults to creating a CMMFDescriptorBuffer. This NewL creates a CMMFDescriptorBuffer with a size of aMaxBufferSize bytes.

Parameters
aMaxBufferSizeThe size in bytes of the descriptor buffer to be created.
Return Value
A pointer to a new CMMFDescriptorBuffer.

SetRequestSizeL ( TInt )

voidSetRequestSizeL(TIntaSize)[pure 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
aSizeThe requested size, in bytes.