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

Method to_base64

libminifi/include/utils/StringUtils.h:483–485  ·  view source on GitHub ↗

* Base64 encodes a string * @param str the string to be Base64 encoded * @param url if true, the URL-safe Base64 encoding will be used * @param padded if true, padding is added to the Base64 encoded string * @return the Base64 encoded string */

Source from the content-addressed store, hash-verified

481 * @return the Base64 encoded string
482 */
483 inline static std::string to_base64(const std::string& str, bool url = false, bool padded = true) {
484 return to_base64(reinterpret_cast<const uint8_t*>(str.data()), str.length(), url, padded);
485 }
486
487 /**
488 * Base64 encodes a string

Callers

nothing calls this directly

Calls 2

lengthMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected