pelican/server/src/ServiceDataBuffer.cpp
/**
 * @details
 * Constructs the service data buffer.
 *
 * @param type         A string containing the type of data held in the buffer.
 * @param max          The maximum size of the buffer in bytes.
 * @param maxChunkSize The maximum chunk size in bytes.
 * @param parent       (Optional.) Pointer to the object's parent.
 */
@details
Constructs the service data buffer.

@param type         A string containing the type of data held in the buffer.
@param max          The maximum size of the buffer in bytes.
@param maxChunkSize The maximum chunk size in bytes.
@param parent       (Optional.) Pointer to the object's parent.
@details Constructs the service data buffer . @param type A string containing the type of data held in the buffer . @param max The maximum size of the buffer in bytes . @param maxChunkSize The maximum chunk size in bytes . @param parent ( Optional . ) Pointer to the object ' s parent .
ServiceDataBuffer::ServiceDataBuffer(const QString& type, const size_t max,
        const size_t maxChunkSize, QObject* parent)
: AbstractDataBuffer(type, parent)
{
    _max = max;
    _maxChunkSize = maxChunkSize;
    if (_maxChunkSize == 0) {
        _maxChunkSize = max;
    }
    _space = _max; 
    _newData = 0;
    _id = 0;
}
ServiceDataBuffer :: ServiceDataBuffer ( const QString & type , const size_t max , const size_t maxChunkSize , QObject * parent ) : AbstractDataBuffer ( type , parent ) { _max = max ; _maxChunkSize = maxChunkSize ; if ( _maxChunkSize == 0 ) { _maxChunkSize = max ; } _space = _max ; _newData = 0 ; _id = 0 ; }
@details
 Constructs the service data buffer.
@details Constructs the service data buffer .
// Buffer initially empty so space = max size.