|
rapidyaml
0.10.0
parse and emit YAML, and do it fast
|
Functions | |
| bool | c4::base64_valid (csubstr encoded) |
| check that the given buffer is a valid base64 encoding More... | |
| size_t | c4::base64_encode (substr encoded, cblob data) |
| base64-encode binary data. More... | |
| size_t | c4::base64_decode (csubstr encoded, blob data) |
| decode the base64 encoding in the given buffer More... | |
| bool c4::base64_valid | ( | csubstr | encoded | ) |
check that the given buffer is a valid base64 encoding
| size_t c4::base64_encode | ( | substr | encoded, |
| cblob | data | ||
| ) |
base64-encode binary data.
| encoded | [out] output buffer for encoded data |
| data | [in] the input buffer with the binary data |
encoded). No writes occur beyond the end of the output buffer, so it is safe to do a speculative call where the encoded buffer is empty, or maybe too small. The caller should ensure that the returned size is smaller than the size of the encoded buffer.data before encoding.Referenced by c4::to_chars().
| size_t c4::base64_decode | ( | csubstr | encoded, |
| blob | data | ||
| ) |
decode the base64 encoding in the given buffer
| encoded | [in] the encoded base64 |
| data | [out] the output buffer |
data). No writes occur beyond the end of the output buffer, so it is safe to do a speculative call where the data buffer is empty, or maybe too small. The caller should ensure that the returned size is smaller than the size of the data buffer.data after decoding.Referenced by c4::from_chars(), and sample::sample_base64().