mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-11 20:52:30 +00:00
Added hex to Object and string_utf8.
This commit is contained in:
+7
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user