srctree

Robin Linden parent 8c52f118 9b10932a
engine: Be more efficient when decoding zstd data

This method will reuse the existing memory if possible.

inlinesplit
engine/engine.cpp added: 2, removed: 2, total 0
@@ -67,7 +67,7 @@ namespace {
return false;
}
 
response.body = std::string(reinterpret_cast<char const *>(decoded->data()), decoded->size());
response.body.assign(reinterpret_cast<char const *>(decoded->data()), decoded->size());
return true;
}