static
| 155 | |
| 156 | // static |
| 157 | void Sample::SerializeToJSONLines(vector<Sample> const & samples, string & lines) |
| 158 | { |
| 159 | for (auto const & sample : samples) |
| 160 | { |
| 161 | unique_ptr<char, JSONFreeDeleter> buffer(json_dumps(sample.SerializeToJSON().get(), JSON_COMPACT)); |
| 162 | lines.append(buffer.get()); |
| 163 | lines.push_back('\n'); |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | void Sample::DeserializeFromJSONImpl(json_t * root) |
| 168 | { |
nothing calls this directly
no test coverage detected