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

Function sixbit_to_b64

ccan/ccan/base64/base64.c:15–20  ·  view source on GitHub ↗

* sixbit_to_b64 - maps a 6-bit value to the base64 alphabet * @param map A base 64 map (see base64_init_map) * @param sixbit Six-bit value to map * @return a base 64 character */

Source from the content-addressed store, hash-verified

13 * @return a base 64 character
14 */
15static char sixbit_to_b64(const base64_maps_t *maps, const uint8_t sixbit)
16{
17 assert(sixbit <= 63);
18
19 return maps->encode_map[(unsigned char)sixbit];
20}
21
22/**
23 * sixbit_from_b64 - maps a base64-alphabet character to its 6-bit value

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected