rapidyaml 0.14.0
parse and emit YAML, and do it fast
Loading...
Searching...
No Matches
base64.hpp File Reference

encoding/decoding for base64. More...

#include "c4/export.hpp"
#include <stddef.h>

Go to the source code of this file.

Namespaces

namespace  c4
 (Undefined by default) Use shorter error message from checks/asserts: do not show the check condition in the error message.

Functions

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.

Detailed Description

encoding/decoding for base64.

See also
https://en.wikipedia.org/wiki/Base64
https://www.base64encode.org/

Definition in file base64.hpp.