MCPcopy Create free account
hub / github.com/CobaltFusion/DebugViewPP / Decompress

Method Decompress

IndexedStorageLib/IndexedStorage.cpp:139–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139std::vector<std::string> SnappyStorage::Decompress(const std::string& value) const
140{
141 std::vector<std::string> vec;
142
143 std::string data;
144 snappy::Uncompress(value.c_str(), value.size(), &data);
145
146 for (auto it = data.begin(); it != data.end(); ++it)
147 {
148 auto begin = it;
149 while (*it)
150 ++it;
151 vec.emplace_back(begin, it);
152 }
153 return vec;
154}
155
156} // namespace indexedstorage
157} // namespace fusion

Callers

nothing calls this directly

Calls 3

UncompressFunction · 0.50
c_strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected