ipfs-chromium
Loading...
Searching...
No Matches
src
ipfs_client
bases
b32.h
1
#ifndef IPFS_B32_UPPER_H_
2
#define IPFS_B32_UPPER_H_
3
4
#include <multibase/basic_algorithm.h>
5
6
namespace
multibase {
7
template
<>
8
struct
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"
;
14
using
execution_style
=
multibase::algorithm::block_tag
;
15
constexpr
static
const
char
padding = 0;
16
};
17
template
<>
18
struct
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"
;
24
using
execution_style
=
multibase::algorithm::block_tag
;
25
constexpr
static
const
char
padding = 0;
26
};
27
}
// namespace multibase
28
29
namespace
ipfs::mb {
30
using
base_32 =
multibase::basic_algorithm<multibase::encoding::base_32>
;
31
using
base_32_upper =
32
multibase::basic_algorithm<multibase::encoding::base_32_upper>
;
33
}
// namespace ipfs::mb
34
35
#endif
// IPFS_B32_UPPER_H_
multibase::algorithm::block_tag
Definition
algorithm.h:13
multibase::basic_algorithm
Definition
basic_algorithm.h:31
multibase::traits
Definition
basic_algorithm.h:21
Generated by
1.9.8