Connects a chunked DCAM buffer to a node map. More...
#include <ChunkAdapterDcam.h>
Public Member Functions | |
virtual void | AttachBuffer (uint8_t *pBuffer, int64_t BufferLength, AttachStatistics_t *pAttachStatistics=NULL) |
Attaches a buffer to the matching ChunkPort. More... | |
CChunkAdapterDcam (INodeMap *pNodeMap=NULL, int64_t MaxChunkCacheSize=-1) | |
Constructor. More... | |
virtual bool | CheckBufferLayout (uint8_t *pBuffer, int64_t BufferLength) |
Checks if a buffer contains chunks in a known format. More... | |
bool | CheckCRC (uint8_t *pBuffer, int64_t BufferLength) |
Checks CRC sum of buffer. More... | |
bool | HasCRC (uint8_t *pBuffer, int64_t BufferLength) |
Checks if buffer has a CRC attached. More... | |
virtual | ~CChunkAdapterDcam () |
Destructor. More... | |
Public Member Functions inherited from GENAPI_NAMESPACE::CChunkAdapter | |
void | AttachNodeMap (INodeMap *pNodeMap) |
Attaches to a node map and retrieves the chunk ports. More... | |
void | ClearCaches () |
Clears the chunk caches. More... | |
void | DetachBuffer () |
Detaches a buffer. More... | |
void | DetachNodeMap () |
Detaches from the node map. More... | |
void | UpdateBuffer (uint8_t *pBaseAddress) |
Updates the base address of the buffer. More... | |
virtual | ~CChunkAdapter () |
Destructor. More... | |
Protected Member Functions | |
bool | CheckBuffer (const unsigned char *pData, uint32_t nbyLength) |
Checks the CRC of a buffer. More... | |
uint32_t | CRC16 (const unsigned char *pData, uint32_t nbyLength) |
Checks the CRC of a buffer. More... | |
Protected Member Functions inherited from GENAPI_NAMESPACE::CChunkAdapter | |
CChunkAdapter (INodeMap *pNodeMap=NULL, int64_t MaxChunkCacheSize=-1) | |
Serves as default constructor. More... | |
Additional Inherited Members | |
Protected Attributes inherited from GENAPI_NAMESPACE::CChunkAdapter | |
int64_t | m_MaxChunkCacheSize |
the maximum size of a chunk to be cached More... | |
std::vector< CChunkPort * > * | m_ppChunkPorts |
An array of attached ChunkPorts. More... | |
Connects a chunked DCAM buffer to a node map.
Definition at line 63 of file ChunkAdapterDcam.h.
GENAPI_NAMESPACE::CChunkAdapterDcam::CChunkAdapterDcam | ( | INodeMap * | pNodeMap = NULL , |
int64_t | MaxChunkCacheSize = -1 |
||
) |
Constructor.
|
virtual |
Destructor.
|
virtual |
Attaches a buffer to the matching ChunkPort.
Implements GENAPI_NAMESPACE::CChunkAdapter.
|
protected |
Checks the CRC of a buffer.
|
virtual |
Checks if a buffer contains chunks in a known format.
Implements GENAPI_NAMESPACE::CChunkAdapter.
bool GENAPI_NAMESPACE::CChunkAdapterDcam::CheckCRC | ( | uint8_t * | pBuffer, |
int64_t | BufferLength | ||
) |
Checks CRC sum of buffer.
|
protected |
Checks the CRC of a buffer.
bool GENAPI_NAMESPACE::CChunkAdapterDcam::HasCRC | ( | uint8_t * | pBuffer, |
int64_t | BufferLength | ||
) |
Checks if buffer has a CRC attached.