Pleora Technologies Inc. eBUS SDK v6.4.0.6670 API



PvRawData.h
1 // *****************************************************************************
2 //
3 // Copyright (c) 2010, Pleora Technologies Inc., All rights reserved.
4 //
5 // *****************************************************************************
6 
7 #ifndef __PVRAWDATA_H__
8 #define __PVRAWDATA_H__
9 
10 #include <PvBufferLib.h>
11 #include <PvPixelType.h>
12 
24 class PV_BUFFER_API PvRawData
25 {
26 public:
27 
28  virtual ~PvRawData() {}
29 
39  virtual uint64_t GetPayloadLength() const = 0;
40 
54  virtual PvResult Alloc( uint64_t aPayloadLength, uint32_t aMaximumChunkLength = 0 ) = 0;
55 
61  virtual void Free() = 0;
62 
79  virtual PvResult Attach( void * aRawBuffer, uint64_t aPayloadLength, uint32_t aMaximumChunkLength = 0 ) = 0;
80 
90  virtual uint8_t *Detach() = 0;
91 
92 };
93 
94 
95 #endif
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

Copyright (c) 2002-2024 Pleora Technologies Inc.
www.pleora.com