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

Method to_hex

libminifi/include/utils/StringUtils.h:413–415  ·  view source on GitHub ↗

* Hexencodes a string * @param str the string to be hexencoded * @param uppercase whether the hexencoded string should be upper case * @return the hexencoded string */

Source from the content-addressed store, hash-verified

411 * @return the hexencoded string
412 */
413 inline static std::string to_hex(const std::string& str, bool uppercase = false) {
414 return to_hex(reinterpret_cast<const uint8_t*>(str.data()), str.length(), uppercase);
415 }
416
417 /**
418 * Hexencodes a vector of bytes

Callers

nothing calls this directly

Calls 2

lengthMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected