mirror of
https://github.com/wiiu-env/WiiUPluginLoaderBackend.git
synced 2024-12-18 17:11:54 +01:00
21 lines
392 B
C++
21 lines
392 B
C++
#pragma once
|
|
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
// based on https://nachtimwald.com/2017/11/18/base64-encode-and-decode-in-c/
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
size_t b64_encoded_size(size_t inlen);
|
|
char *b64_encode(const uint8_t *in, size_t len);
|
|
|
|
size_t b64_decoded_size(const char *in);
|
|
int b64_decode(const char *in, uint8_t *out, size_t outlen);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|