1#ifndef CODEX_BASE64_RFC_ADAPTER_H
2#define CODEX_BASE64_RFC_ADAPTER_H
14 static void encode(std::string_view src,
char *out);
15 static char *
decode(std::string_view src,
char *out);
20 src.data(), src.size(),
constexpr std::size_t output_size(std::size_t n)
Calculates the size of the buffer required for the output, rounding up.
Definition cmd.hpp:48
bool base64_decode(const char *in, size_t inlen, char *out, size_t *outlen)
Definition base64.c:301
void base64_encode(const char *in, size_t inlen, char *out, size_t outlen)
Definition base64.c:68
Adaptor for EncodeFunc and DecodeFunc for the RFC implementation.
Definition adaptor.hpp:13
static char * decode(std::string_view src, char *out)
Definition adaptor.hpp:24
static void encode(std::string_view src, char *out)
Definition adaptor.hpp:18