* 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 */
| 13 | * @return a base 64 character |
| 14 | */ |
| 15 | static 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 |
no outgoing calls
no test coverage detected