pelican/server/src/AbstractChunker.cpp
/**
 * @details
 * Returns a writable data object of the specified \p size.
 *
 * This method should be used by the chunker to access memory in a stream
 * or service FIFO buffer to ensure that the chunker only ever writes into an
 * available, locked location.
 *
 * @param[in] size  The size of the chunk requested on the buffer.
 */
@details
Returns a writable data object of the specified \p size.

This method should be used by the chunker to access memory in a stream
or service FIFO buffer to ensure that the chunker only ever writes into an
available, locked location.

@param[in] size  The size of the chunk requested on the buffer.
@details Returns a writable data object of the specified \ p size . This method should be used by the chunker to access memory in a stream or service FIFO buffer to ensure that the chunker only ever writes into an available locked location . @param [ in ] size The size of the chunk requested on the buffer .
WritableData AbstractChunker::getDataStorage(size_t size) const
{
    if (!_dataManager)
        throw QString("AbstractChunker::getDataStorage(): No data manager.");
    if (_chunkTypes.size() != 1)
        throw QString("AbstractChunker::getDataStorage(): "
                "More than one chunk type registered, ambiguous request.");
    return _dataManager->getWritableData(_chunkTypes[0], size);
}
WritableData AbstractChunker :: getDataStorage ( size_t size ) const { if ( ! _dataManager ) throw QString ( " " ) ; if ( _chunkTypes . size ( ) != 1 ) throw QString ( " " " " ) ; return _dataManager -> getWritableData ( _chunkTypes [ 0 ] , size ) ; }
@details
 Returns a writable data object of the specified \p size.
@details Returns a writable data object of the specified \ p size .