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. | |
CChunkAdapterDcam (INodeMap *pNodeMap=NULL, int64_t MaxChunkCacheSize=-1) | |
Constructor. | |
virtual bool | CheckBufferLayout (uint8_t *pBuffer, int64_t BufferLength) |
Checks if a buffer contains chunks in a known format. | |
bool | CheckCRC (uint8_t *pBuffer, int64_t BufferLength) |
Checks CRC sum of buffer. | |
bool | HasCRC (uint8_t *pBuffer, int64_t BufferLength) |
Checks if buffer has a CRC attached. | |
virtual | ~CChunkAdapterDcam () |
Destructor. | |
Protected Member Functions | |
bool | CheckBuffer (const unsigned char *pData, uint32_t nbyLength) |
Checks the CRC of a buffer. | |
uint32_t | CRC16 (const unsigned char *pData, uint32_t nbyLength) |
Checks the CRC of a buffer. |
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 GENAPI_NAMESPACE::CChunkAdapterDcam::~CChunkAdapterDcam | ( | ) | [virtual] |
Destructor.
virtual void GENAPI_NAMESPACE::CChunkAdapterDcam::AttachBuffer | ( | uint8_t * | pBuffer, |
int64_t | BufferLength, | ||
AttachStatistics_t * | pAttachStatistics = NULL |
||
) | [virtual] |
Attaches a buffer to the matching ChunkPort.
Implements GENAPI_NAMESPACE::CChunkAdapter.
bool GENAPI_NAMESPACE::CChunkAdapterDcam::CheckBuffer | ( | const unsigned char * | pData, |
uint32_t | nbyLength | ||
) | [protected] |
Checks the CRC of a buffer.
virtual bool GENAPI_NAMESPACE::CChunkAdapterDcam::CheckBufferLayout | ( | uint8_t * | pBuffer, |
int64_t | BufferLength | ||
) | [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.
uint32_t GENAPI_NAMESPACE::CChunkAdapterDcam::CRC16 | ( | const unsigned char * | pData, |
uint32_t | nbyLength | ||
) | [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.