Function rcg::getChunkAdapter

Function Documentation

std::shared_ptr<GenApi::CChunkAdapter> rcg::getChunkAdapter(const std::shared_ptr<GenApi::CNodeMapRef> &nodemap, const std::string &tltype)

NOTE: This function is deprecated. Instead, enable chunks with ChunkModeActive=true and call Stream::attachBuffers(true).

Sets ChunkModeActive to 1, creates a chunk adapter for the specified transport layer and attaches it to the given nodemap.

The returned chunk adapter must be attached to a buffer that contains chunk data. Thereafter, the data can be accessed through the Chunk* features of the given nodemap. After accessing all required data, the adapter must be detached from the buffer!

Parameters:
Returns:

Chunk adapter that is already attached to the given nodemap or null pointer if chunk mode cannot be activated.