22 #ifndef NDN_BASE64_HPP
23 #define NDN_BASE64_HPP
27 #include <ndn-cpp/common.hpp>
40 toBase64(
const uint8_t* array,
size_t arrayLength,
bool addNewlines =
false);
50 toBase64(
const std::vector<uint8_t>& array,
bool addNewlines =
false)
52 return toBase64(&array[0], array.size(), addNewlines);
62 fromBase64(
const std::string& input, std::vector<uint8_t>& output);
Copyright (C) 2013-2016 Regents of the University of California.
Definition: common.hpp:35
string toBase64(const uint8_t *array, size_t arrayLength, bool addNewlines)
Return the base64 representation of the bytes in array.
Definition: base64.cpp:34