UNISTDX_BASE_BASE64
base64_decode(const char * first, size_t n, char * result) -> UNISTDX_FLATTEN size_t

Decode BASE64 byte sequence.

std::invalid_argument
when input sequence is not valid BASE64 string

Decode BASE64 byte sequence pointed by first with length n and put result to memory location pointed by result.

base64_encoded_size(size_t len) -> size_t

The length of len bytes sequence encoded in BASE64.

std::length_error
when len is too large to be encoded as BASE64 string on this system

base64_max_decoded_size(size_t len) -> UNISTDX_CONST size_t

The length of len bytes sequence decoded from BASE64.

base64_encode(const char * first, size_t n, char * result) -> UNISTDX_FLATTEN void

Encode byte sequence with BASE64. Encode byte sequence pointed by first with length n with BASE64 and put result to memory location pointed by result.

base64_decode(const char * first, const char * last, char * result) -> size_t

Decode BASE64 byte sequence.

std::invalid_argument
when input sequence is not valid BASE64 string

Decode BASE64 byte sequence between first and last and put result to memory location pointed by result.

base64_encode(const char * first, const char * last, char * result) -> void

Encode byte sequence with BASE64. Encode byte sequence located between first and last with BASE64 and put result to memory location pointed by result.