rapidyaml 0.15.2
parse and emit YAML, and do it fast
Loading...
Searching...
No Matches
base64.cpp File Reference
#include "c4/base64.hpp"
#include "c4/error.hpp"
#include <stdint.h>
#include <string.h>
#include <type_traits>

Go to the source code of this file.

Namespaces

namespace  c4
namespace  c4::detail

Macros

#define C4_PREFER_BSWAP
#define s_   dectype(-1)

Functions

void c4::detail::base64_test_tables ()
bool c4::base64_valid (const char *encoded, size_t encoded_sz)
 check that the given buffer is a valid base64 encoding
size_t c4::base64_encode (char *encoded, size_t encoded_sz, void const *data, size_t data_sz)
 base64-encode binary data.
bool c4::base64_decode (char const *encoded, size_t encoded_sz, void *data, size_t data_sz, size_t *data_sz_required)
 decode the base64 encoding in the given buffer.

Macro Definition Documentation

◆ C4_PREFER_BSWAP

#define C4_PREFER_BSWAP

Definition at line 12 of file base64.cpp.

◆ s_