We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9139040 + db478c4 commit d009a02Copy full SHA for d009a02
src/libmerc/base64.h
@@ -9,7 +9,7 @@
9
#include <cstring>
10
#include <stdexcept>
11
12
-std::string hex_encode(const unsigned char *src, size_t len) {
+inline std::string hex_encode(const unsigned char *src, size_t len) {
13
char hex_table[] =
14
{
15
'0', '1', '2', '3',
@@ -52,7 +52,7 @@ static const unsigned char base64url_table[65] =
52
* @src: Data to be encoded
53
* @len: Length of the data to be encoded
54
*/
55
-std::string base64_encode(const unsigned char *src, size_t len, const unsigned char table[65]=base64_table)
+inline std::string base64_encode(const unsigned char *src, size_t len, const unsigned char table[65]=base64_table)
56
57
unsigned char *out, *pos;
58
const unsigned char *end, *in;
0 commit comments