pelican/core/src/AdapterRealData.cpp
/**
 * @details
 * Method to deserialise a real-valued data chunk
 * contained in a QIODevice into a Pelican real-valued data blob.
 *
 * @param[in] in  Pointer to a QIODevice containing serialised data.
 */
@details
Method to deserialise a real-valued data chunk
contained in a QIODevice into a Pelican real-valued data blob.

@param[in] in  Pointer to a QIODevice containing serialised data.
@details Method to deserialise a real - valued data chunk contained in a QIODevice into a Pelican real - valued data blob . @param [ in ] in Pointer to a QIODevice containing serialised data .
void AdapterRealData::deserialise(QIODevice* in)
{
    DoubleData* blob = static_cast<DoubleData*>(_data);
    unsigned length = _chunkSize / sizeof(double);
    if (_chunkSize % sizeof(double) != 0) length++;
    blob->resize(length);
    in->read((char*)blob->ptr(), _chunkSize);
}
void AdapterRealData :: deserialise ( QIODevice * in ) { DoubleData * blob = static_cast < DoubleData * > ( _data ) ; unsigned length = _chunkSize / sizeof ( double ) ; if ( _chunkSize % sizeof ( double ) != 0 ) length ++ ; blob -> resize ( length ) ; in -> read ( ( char * ) blob -> ptr ( ) , _chunkSize ) ; }
@details
 Method to deserialise a real-valued data chunk
 contained in a QIODevice into a Pelican real-valued data blob.
@details Method to deserialise a real - valued data chunk contained in a QIODevice into a Pelican real - valued data blob .
// Set the size of the data blob to fill. // Read the data off the device.