7 #ifndef __PVRAWDATA_H__
8 #define __PVRAWDATA_H__
10 #include <PvBufferLib.h>
54 virtual PvResult Alloc( uint64_t aPayloadLength, uint32_t aMaximumChunkLength = 0 ) = 0;
79 virtual PvResult Attach(
void * aRawBuffer, uint64_t aPayloadLength, uint32_t aMaximumChunkLength = 0 ) = 0;
Raw data interface to a PvBuffer.
Definition: PvRawData.h:25
virtual PvResult Alloc(uint64_t aPayloadLength, uint32_t aMaximumChunkLength=0)=0
Allocates memory for this PvRawData.
virtual uint8_t * Detach()=0
Releases an attached memory buffer.
virtual uint64_t GetPayloadLength() const =0
Get the payload length specified in the leader information of this block.
virtual void Free()=0
Frees (de-allocates) the buffer's internal memory.
virtual PvResult Attach(void *aRawBuffer, uint64_t aPayloadLength, uint32_t aMaximumChunkLength=0)=0
Attach this PvRawData to an external memory buffer.
Result information.
Definition: PvResult.h:30