|
LMMS
|
#include "base64.h"#include "serd_internal.h"#include "string_utils.h"#include "serd/serd.h"#include <stdbool.h>#include <stdint.h>#include <stdlib.h>#include <string.h>Go to the source code of this file.
Functions | |
| static void | encode_chunk (uint8_t out[4], const uint8_t in[3], size_t n_in) |
| size_t | serd_base64_get_length (const size_t size, const bool wrap_lines) |
| bool | serd_base64_encode (uint8_t *const str, const void *const buf, const size_t size, const bool wrap_lines) |
| static uint8_t | unmap (const uint8_t in) |
| static size_t | decode_chunk (const uint8_t in[4], uint8_t out[3]) |
| void * | serd_base64_decode (const uint8_t *str, size_t len, size_t *size) |
Variables | |
| static const uint8_t | b64_map [] |
| static const char | b64_unmap [] |
Decode 4 base64 characters to 3 raw bytes.
Encode 3 raw bytes to 4 base64 characters.
| size_t serd_base64_get_length | ( | size_t | size, |
| bool | wrap_lines ) |
Base64 encoding table.
|
static |
Base64 decoding table.
This is indexed by encoded characters and returns the numeric value used for decoding, shifted up by 47 to be in the range of printable ASCII. A '$' is a placeholder for characters not in the base64 alphabet.