| 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.
| Public Member Functions | |
|---|---|
| ~CMMFDescriptorBuffer() | |
| TUint | BufferSize() |
| TDes8 & | Data() |
| const TDesC8 & | Data() |
| IMPORT_C CMMFDescriptorBuffer * | NewL() |
| IMPORT_C CMMFDescriptorBuffer * | NewL(TInt) |
| IMPORT_C void | ReAllocBufferL(TInt) |
| void | SetPosition(TUint) |
| void | SetRequestSizeL(TInt) |
| void | SetStatus(TBufferStatus) |
| Private Member Functions | |
|---|---|
| CMMFDescriptorBuffer() | |
| void | ConstructL(TInt) |
| Private Attributes | |
|---|---|
| TUint8 * | iData |
| TPtr8 | iPtr |
| Inherited Attributes | |
|---|---|
| CMMFBuffer::iFrameNumber | |
| CMMFBuffer::iLastBuffer | |
| CMMFBuffer::iPosition | |
| CMMFBuffer::iRequestSize | |
| CMMFBuffer::iStatus | |
| CMMFBuffer::iTimeToPlay | |
| CMMFBuffer::iType | |
| 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.
| 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.
| 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.
| IMPORT_C CMMFDescriptorBuffer * | NewL | ( | TInt | aMaxBufferSize | ) | [static] |
| TInt aMaxBufferSize |
| void | SetPosition | ( | TUint | aPosition | ) | [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.
| TUint aPosition | The buffer's number. |
| void | SetRequestSizeL | ( | TInt | aSize | ) | [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.
| TInt aSize | The requested size, in bytes. |
| void | SetStatus | ( | TBufferStatus | aStatus | ) | [virtual] |
Sets the buffer's status.
| TBufferStatus aStatus | The buffer's status. |