Function rcg::getChunkAdapter
Defined in File config.h
Function Documentation
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:
nodemap – Feature nodemap.
tltype – Transport layer type as returned by, e.g. System::getTLType() or Device::getTLType()
- Returns:
Chunk adapter that is already attached to the given nodemap or null pointer if chunk mode cannot be activated.