mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Signed-off-by: Alexey Polyudov <apolyudov@google.com> Change-Id: I3671e40fd0f8f028e3c8e46c4a47de0d2cc9aeff
26 lines
628 B
C++
26 lines
628 B
C++
#ifndef PLATFORM_BASE64_UTILS_H_
|
|
#define PLATFORM_BASE64_UTILS_H_
|
|
|
|
#include "platform/byte_array.h"
|
|
#include "platform/port/string.h"
|
|
#include "platform/ptr.h"
|
|
|
|
namespace location {
|
|
namespace nearby {
|
|
|
|
class Base64Utils {
|
|
public:
|
|
static std::string encode(const std::string& input);
|
|
static std::string encode(const ByteArray& bytes);
|
|
static std::string encode(ConstPtr<ByteArray> bytes);
|
|
|
|
template <typename T>
|
|
static T decode(const std::string& base64_string);
|
|
static Ptr<ByteArray> decode(const std::string& base64_string);
|
|
};
|
|
|
|
} // namespace nearby
|
|
} // namespace location
|
|
|
|
#endif // PLATFORM_BASE64_UTILS_H_
|