#include <mmf/server/mmfdatabuffer.h>
class CMMFDataBuffer : public CMMFBuffer |
Public Member Functions | |
---|---|
virtual | ~CMMFDataBuffer() |
pure virtual TUint | BufferSize() |
pure virtual TDes8 & | Data() |
pure virtual const TDesC8 & | Data() |
IMPORT_C CMMFDataBuffer * | NewL() |
IMPORT_C CMMFDataBuffer * | NewL(TInt) |
pure virtual void | SetRequestSizeL(TInt) |
Protected Member Functions | |
---|---|
CMMFDataBuffer(TUid) |
Inherited Attributes | |
---|---|
CMMFBuffer::iFrameNumber | |
CMMFBuffer::iLastBuffer | |
CMMFBuffer::iPosition | |
CMMFBuffer::iRequestSize | |
CMMFBuffer::iStatus | |
CMMFBuffer::iTimeToPlay | |
CMMFBuffer::iType |
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
TUint | BufferSize | ( | ) | const [pure virtual] |
Reimplemented from CMMFBuffer::BufferSize()const
Returns the buffer size, in bytes.
This is a virtual function that each derived class must implement.
Returns: The buffer size in bytes.
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.
Returns: A reference to the buffer.
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.
Returns: A reference to the buffer.
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.
Returns: A pointer to a new CMMFDescriptorBuffer.
IMPORT_C CMMFDataBuffer * | NewL | ( | TInt | aMaxBufferSize | ) | [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.
Parameter | Description |
---|---|
aMaxBufferSize | The size in bytes of the descriptor buffer to be created. |
Returns: A pointer to a new CMMFDescriptorBuffer.
void | SetRequestSizeL | ( | TInt | aSize | ) | [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.
Parameter | Description |
---|---|
aSize | The requested size, in bytes. |