| 137 | } |
| 138 | |
| 139 | std::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 |
nothing calls this directly
no test coverage detected