7 #ifndef __PVCHUNKDATA_H__ 8 #define __PVCHUNKDATA_H__ 10 #include <PvBufferLib.h> 25 uint64_t GetChunkDataPayloadLength()
const;
27 PvResult Alloc( uint32_t aMaximumChunkLength );
30 PvResult Attach(
void * aRawBuffer, uint32_t aMaximumChunkLength );
34 PvResult AddChunk( uint32_t aID,
const uint8_t *aData, uint32_t aLength );
37 uint32_t GetChunkCount();
38 PvResult GetChunkIDByIndex( uint32_t aIndex, uint32_t &aID );
39 uint32_t GetChunkSizeByIndex( uint32_t aIndex );
40 uint32_t GetChunkSizeByID( uint32_t aID );
41 const uint8_t *GetChunkRawDataByIndex( uint32_t aIndex );
42 const uint8_t *GetChunkRawDataByID( uint32_t aID );
51 friend class PvBufferLib::Buffer;
57 PvBufferLib::ChunkData *mThis;
Raw data interface to a PvBuffer.
Definition: PvChunkData.h:21
Result information.
Definition: PvResult.h:13
Definition: PvBuffer.h:18