navicat-keygen-2023/navicat-keygen/base64_rfc4648.hpp
Double Sine b3046b43f0
simplify some exception classes
Signed-off-by: Double Sine <xiao_ai_yu@live.cn>
2022-05-07 23:08:50 +08:00

21 lines
424 B
C++

#pragma once
#include <string>
#include <vector>
#include "exception.hpp"
namespace nkg {
struct base64_rfc4648 {
class backend_error;
static std::string encode(const std::vector<std::uint8_t>& data);
static std::vector<uint8_t> decode(std::string_view str_b64);
};
class base64_rfc4648::backend_error : public ::nkg::exception {
using ::nkg::exception::exception;
};
}