Changeset View
Changeset View
Standalone View
Standalone View
native/cpp/CommonCpp/Tools/Base64.h
#pragma once | #pragma once | ||||
#include <string> | #include <string> | ||||
#include <string_view> | |||||
#include <vector> | #include <vector> | ||||
namespace comm { | namespace comm { | ||||
class Base64 { | class Base64 { | ||||
public: | public: | ||||
static std::string encode(const std::vector<uint8_t> &data); | static std::string encode(const std::vector<uint8_t> &data); | ||||
static std::vector<uint8_t> decode(const std::string_view base64String); | |||||
}; | }; | ||||
} // namespace comm | } // namespace comm |