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

Method encodeNP

src/openms/source/FORMAT/MSNumpressCoder.cpp:24–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22 using namespace ms; // numpress namespace
23
24 void MSNumpressCoder::encodeNP(const std::vector<double> & in, String & result,
25 bool zlib_compression, const NumpressConfig & config)
26 {
27 result.clear();
28 encodeNPRaw(in, result, config);
29 if (result.empty())
30 {
31 return;
32 }
33
34 // Encode in base64 and compress
35 std::vector<String> tmp;
36 tmp.push_back(result);
37 Base64::encodeStrings(tmp, result, zlib_compression, false);
38 }
39
40 void MSNumpressCoder::encodeNP(const std::vector<float> & in, String & result,
41 bool zlib_compression, const NumpressConfig & config)

Callers 8

testNumpressCoderFunction · 0.95
test_encodeNP_SLOFMethod · 0.95
test_encodeNP_PICMethod · 0.95
test_encodeNP_LINEARMethod · 0.95
writeBinaryDataArray_Method · 0.80
START_SECTIONFunction · 0.80

Calls 5

clearMethod · 0.45
emptyMethod · 0.45
push_backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 5

testNumpressCoderFunction · 0.76
test_encodeNP_SLOFMethod · 0.76
test_encodeNP_PICMethod · 0.76
test_encodeNP_LINEARMethod · 0.76
START_SECTIONFunction · 0.64