Files
TTDownloader/third_party/NIM_Duilib_Framework/base/util/base64.h
T
tongtong e1e26acc49 第三方框架改为仓内子集并完善构建忽略规则
完整 NIM_Duilib_Framework 仓库移至父目录,third_party 仅保留实际使用的 base、duilib、bin/resources 与许可证;.gitignore 覆盖 MSBuild 与打包产物。
2026-11-15 08:54:17 +08:00

26 lines
710 B
C++

// Base64 encode/decode
#ifndef BASE_UTIL_BASE64_H_
#define BASE_UTIL_BASE64_H_
#include <string>
#include "base/base_export.h"
namespace nbase
{
/*
* purpose Encodes the input string in base64. Returns true if successful and false
* otherwise. The output string is only modified if successful.
*/
BASE_EXPORT bool Base64Encode(const std::string& input, std::string* output);
/*
* purpose Decodes the base64 input string. Returns true if successful and false
* otherwise. The output string is only modified if successful.
*/
BASE_EXPORT bool Base64Decode(const std::string& input, std::string* output);
} // namespace nbase
#endif // BASE_UTIL_BASE64_H_