//======================================================================== // // gbase64.h // // Implementation of a base64 encoder, because another one did not immediately // avail itself. // // This file is licensed under the GPLv2 or later // // Copyright (C) 2018 Greg Knight // Copyright (C) 2019 Albert Astals Cid // //======================================================================== #ifndef GOO_GBASE64_H #define GOO_GBASE64_H #include #include std::string gbase64Encode(const void *input, size_t len); inline std::string gbase64Encode(const std::vector &input) { return input.empty() ? std::string() : gbase64Encode(&input[0], input.size()); } inline std::string gbase64Encode(const std::vector &input) { return input.empty() ? std::string() : gbase64Encode(&input[0], input.size()); } #endif // ndef GOO_GBASE64_H