MLIB
Loading...
Searching...
No Matches
base64.h
Go to the documentation of this file.
1
/*
2
Copyright (c) Mircea Neacsu (2014-2025) Licensed under MIT License.
3
This file is part of MLIB project. See LICENSE file for full license terms.
4
*/
5
7
#pragma once
8
9
#if __has_include("defs.h")
10
#include "defs.h"
11
#endif
12
13
#include <string>
14
15
namespace
mlib {
16
17
size_t
base64dec
(
const
char
* in,
void
* out);
18
size_t
base64enc
(
const
void
* in,
char
* out,
size_t
ilen);
19
20
std::string
base64enc
(
const
std::string& in);
21
std::string
base64dec
(
const
std::string& in);
22
23
};
// namespace mlib
mlib::base64enc
size_t base64enc(const void *in, char *out, size_t ilen)
Encode input bytes to Base64 producing a null-terminated string.
Definition
base64.cpp:125
mlib::base64dec
size_t base64dec(const char *in, void *out)
Decode a Base64 string.
Definition
base64.cpp:31
include
mlib
base64.h
Generated on Wed Apr 23 2025 13:32:39 for MLIB by
1.13.0