| 186 | } |
| 187 | |
| 188 | rapidjson::Value RESTProtocol::getStringValue(const std::string& value, rapidjson::Document::AllocatorType& alloc) { // NOLINT |
| 189 | rapidjson::Value Val; |
| 190 | Val.SetString(value.c_str(), gsl::narrow<rapidjson::SizeType>(value.length()), alloc); |
| 191 | return Val; |
| 192 | } |
| 193 | |
| 194 | void RESTProtocol::mergePayloadContent(rapidjson::Value &target, const C2Payload &payload, rapidjson::Document::AllocatorType &alloc) { |
| 195 | const std::vector<C2ContentResponse> &content = payload.getContent(); |
no test coverage detected