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

Function base64_encode_tail

ccan/ccan/base64/base64.h:171–175  ·  view source on GitHub ↗

* base64_encode_tail - encode the final bytes of a source according to rfc4648 * @param dest Buffer containing 4 bytes * @param src Buffer containing srclen bytes * @param srclen Number of bytes (<= 3) to encode in src */

Source from the content-addressed store, hash-verified

169 * @param srclen Number of bytes (<= 3) to encode in src
170 */
171static inline
172void base64_encode_tail(char dest[4], const char *src, size_t srclen)
173{
174 base64_encode_tail_using_maps(&base64_maps_rfc4648, dest, src, srclen);
175}
176
177
178/**

Callers 1

mainFunction · 0.85

Calls 1

Tested by 1

mainFunction · 0.68