ipfs-chromium
Loading...
Searching...
No Matches
b32.h
1#ifndef IPFS_B32_UPPER_H_
2#define IPFS_B32_UPPER_H_
3
4#include <multibase/basic_algorithm.h>
5
6namespace multibase {
7template <>
8struct traits<::multibase::encoding::base_32> {
9 constexpr static const std::array<char, 32> charset = {
10 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k',
11 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
12 'w', 'x', 'y', 'z', '2', '3', '4', '5', '6', '7'};
13 constexpr static const char name[] = "base_32";
15 constexpr static const char padding = 0;
16};
17template <>
18struct traits<::multibase::encoding::base_32_upper> {
19 constexpr static const std::array<char, 32> charset = {
20 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K',
21 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V',
22 'W', 'X', 'Y', 'Z', '2', '3', '4', '5', '6', '7'};
23 constexpr static const char name[] = "base_32_upper";
25 constexpr static const char padding = 0;
26};
27} // namespace multibase
28
29namespace ipfs::mb {
31using base_32_upper =
33} // namespace ipfs::mb
34
35#endif // IPFS_B32_UPPER_H_
Definition algorithm.h:13
Definition basic_algorithm.h:31
Definition basic_algorithm.h:21