MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / fillDataArray

Function fillDataArray

src/openms/source/FORMAT/HANDLERS/MzMLSpectrumDecoder.cpp:51–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Calls 5

insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
setMZMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected