Files
nearby/cpp/platform/base64_utils.h
T
Alexey Polyudov 18c09c5abe Fix build and tests
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
Change-Id: I3671e40fd0f8f028e3c8e46c4a47de0d2cc9aeff
2020-04-04 12:55:06 -07:00

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_