Added hex to Object and string_utf8.

This commit is contained in:
Jari Sundell
2026-06-03 21:22:16 +02:00
committed by GitHub
parent d0fc48cf7b
commit f1cfe8ad72
7 changed files with 180 additions and 71 deletions
+7 -1
View File
@@ -1,12 +1,18 @@
#ifndef RTORRENT_UTILS_BASE64_H
#define RTORRENT_UTILS_BASE64_H
#include <optional>
#include <string>
#include <vector>
#include <torrent/exceptions.h>
namespace utils {
// TODO: Refactor and move to torrent/string_manip.h.
std::optional<std::vector<uint8_t>> base64_to_vector_unsafe(const std::string& src);
std::string openssl_base64_encode(const std::string& src);
// TODO: Deprecate.
std::string remove_newlines(const std::string& str);
std::string decode_base64(const std::string& input);