HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
base93.hpp
1// Copyright 2019 Pokitec
2// All rights reserved.
3
4#pragma once
5
6#include "TTauri/Foundation/required.hpp"
7#include "TTauri/Foundation/byte_string.hpp"
8#include <optional>
9
10namespace tt {
11
12std::string base93_encode(bstring_view message) noexcept;
13
14std::optional<bstring> base93_decode(std::string_view str, size_t &offset);
15
16inline std::optional<bstring> base93_decode(std::string_view str)
17{
18 size_t offset = 0;
19 return base93_decode(str, offset);
20}
21
22}