Generic chunk data interface. More...
Public Member Functions | |
virtual PvResult | AddChunk (uint32_t aID, const uint8_t *aData, uint32_t aLength)=0 |
See PvBuffer::AddChunk. More... | |
virtual void | SetChunkLayoutID (uint32_t aChunkLayoutID)=0 |
Set the chunk data layout ID. More... | |
virtual bool | HasChunks () const =0 |
Returns true if the buffer has data chunks. More... | |
virtual uint32_t | GetChunkCount ()=0 |
See PvBuffer::GetChunkCount. More... | |
virtual PvResult | GetChunkIDByIndex (uint32_t aIndex, uint32_t &aID)=0 |
See PvBuffer::GetChunkIDByIndex. More... | |
virtual uint32_t | GetChunkSizeByIndex (uint32_t aIndex)=0 |
See PvBuffer::GetChunkSizeByIndex. More... | |
virtual uint32_t | GetChunkSizeByID (uint32_t aID)=0 |
See PvBuffer::GetChunkSizeByID. More... | |
virtual const uint8_t * | GetChunkRawDataByIndex (uint32_t aIndex)=0 |
See PvBuffer::GetChunkRawDataByIndex. More... | |
virtual const uint8_t * | GetChunkRawDataByID (uint32_t aID)=0 |
See PvBuffer::GetChunkRawDataByID. More... | |
virtual uint32_t | GetChunkLayoutID ()=0 |
Get the chunk data layout ID. More... | |
Generic chunk data interface.
|
pure virtual |
See PvBuffer::AddChunk.
Same as PvBuffer equivalent. Provided with this interface for convenience.
[in] | aID | Chunk data ID for aIndex. |
[in] | aData | Payload data of the chunk data. |
[in] | aLength | Length of the payload data of the chunk, in bytes. Must be a multiple of 4 bytes. |
Implemented in PvBuffer.
|
pure virtual |
|
pure virtual |
See PvBuffer::GetChunkIDByIndex.
Same as PvBuffer equivalent. Provided with this interface for convenience.
[in] | aIndex | Data chunk index. |
[out] | aID | Data chunk ID for aIndex. |
Implemented in PvBuffer.
|
pure virtual |
|
pure virtual |
See PvBuffer::GetChunkRawDataByID.
Same as PvBuffer equivalent. Provided with this interface for convenience.
[in] | aID | Data chunk ID. |
Implemented in PvBuffer.
|
pure virtual |
See PvBuffer::GetChunkRawDataByIndex.
Same as PvBuffer equivalent. Provided with this interface for convenience.
[in] | aIndex | Data chunk index. |
Implemented in PvBuffer.
|
pure virtual |
See PvBuffer::GetChunkSizeByID.
Same as PvBuffer equivalent. Provided with this interface for convenience.
[in] | aID | Data chunk ID. |
Implemented in PvBuffer.
|
pure virtual |
See PvBuffer::GetChunkSizeByIndex.
Same as PvBuffer equivalent. Provided with this interface for convenience.
[in] | aIndex | Data chunk index. |
Implemented in PvBuffer.
|
pure virtual |
Returns true if the buffer has data chunks.
Unlike GetChunkCount, chunks do not need to be parsed or resolved with this method.
Implemented in PvBuffer.
|
pure virtual |
Set the chunk data layout ID.
[in] | aChunkLayoutID | Chunk data layout ID. |
Implemented in PvBuffer.
Copyright (c) 2002-2021 Pleora Technologies Inc.
www.pleora.com