MCPcopy Create free account
hub / github.com/ElementsProject/lightning / base64_encode_triplet

Function base64_encode_triplet

ccan/ccan/base64/base64.h:159–163  ·  view source on GitHub ↗

* base64_encode_triplet - encode 3 bytes into base64 according to rfc4648 * @param dest Buffer containing 4 bytes * @param src Buffer containing 3 bytes */

Source from the content-addressed store, hash-verified

157 * @param src Buffer containing 3 bytes
158 */
159static inline
160void base64_encode_triplet(char dest[4], const char src[3])
161{
162 base64_encode_triplet_using_maps(&base64_maps_rfc4648, dest, src);
163}
164
165/**
166 * base64_encode_tail - encode the final bytes of a source according to rfc4648

Callers 1

mainFunction · 0.85

Calls 1

Tested by 1

mainFunction · 0.68