|
|
|
|
Location:
mmfdatabuffer.h
Link against: mmfserverbaseclasses.lib
class CMMFDataBuffer : public CMMFBuffer;
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.
CBase - Base class for all classes to be instantiated on the heap
CMMFBuffer - Abstract representation of a buffer to contain multimedia data
CMMFDataBuffer - This class is an abstract class for databuffers that can be presented in the form of a descriptor
Defined in CMMFDataBuffer:
BufferSize(), CMMFDataBuffer(), Data(), Data(), NewL(), NewL(), SetRequestSizeL(), ~CMMFDataBuffer()
Inherited from CBase:
Delete(),
Extension_(),
operator new()
Inherited from CMMFBuffer:
FrameNumber(),
IsFileServerSafe(),
IsSupportedDataBuffer(),
LastBuffer(),
NextFrame(),
Position(),
RequestSize(),
SetFrameNumber(),
SetLastBuffer(),
SetPosition(),
SetStatus(),
SetTimeToPlay(),
Status(),
TimeToPlay(),
Type(),
iFrameNumber,
iLastBuffer,
iPosition,
iRequestSize,
iStatus,
iTimeToPlay,
iType
static IMPORT_C CMMFDataBuffer *NewL();
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.
|
static IMPORT_C CMMFDataBuffer *NewL(TInt aMaxBufferSize);
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.
|
|
protected: inline CMMFDataBuffer(TUid aType);
Protected constructor.
|
virtual TDes8 &Data()=0;
Returns a reference to the data contained in the buffer (non const version).
This is a virtual function that each derived class must implement.
|
virtual const TDesC8 &Data() const=0;
Returns a reference to the data contained in the buffer (const version).
This is a virtual function that each derived class must implement.
|
virtual TUint BufferSize() const=0;
Returns the buffer size, in bytes.
This is a virtual function that each derived class must implement.
|
virtual void SetRequestSizeL(TInt aSize)=0;
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.
|