| 49 | } |
| 50 | |
| 51 | inline void fillDataArray(const std::vector<Internal::MzMLHandlerHelper::BinaryData>& data, |
| 52 | const OpenMS::Interfaces::BinaryDataArrayPtr& array, bool precision_64, SignedSize index) |
| 53 | { |
| 54 | // This seems to be the fastest method to move the data (faster than copy or assign) |
| 55 | if (precision_64) |
| 56 | { |
| 57 | array->data.insert(array->data.begin(), data[index].floats_64.begin(), data[index].floats_64.end()); |
| 58 | } |
| 59 | else |
| 60 | { |
| 61 | array->data.insert(array->data.begin(), data[index].floats_32.begin(), data[index].floats_32.end()); |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | template<class T> |
| 66 | inline void fillDataArrayFloat(const Internal::MzMLHandlerHelper::BinaryData& data, T& spectrum) |
no test coverage detected