MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / getStringValue

Method getStringValue

libminifi/src/c2/protocols/RESTProtocol.cpp:188–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188rapidjson::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
194void RESTProtocol::mergePayloadContent(rapidjson::Value &target, const C2Payload &payload, rapidjson::Document::AllocatorType &alloc) {
195 const std::vector<C2ContentResponse> &content = payload.getContent();

Callers 1

setJsonStrFunction · 0.45

Calls 2

c_strMethod · 0.80
lengthMethod · 0.80

Tested by

no test coverage detected