![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
Base64 encode decode function, adapted from https://opensource.apple.com/source/QuickTimeStreamingServer/QuickTimeStreamingServer-452/CommonUtilitiesLib/base64.c. More...
Include dependency graph for n_base64.c:Go to the source code of this file.
Functions | |
| N_STR * | n_base64_decode (N_STR *bufcoded) |
| decode a N_STR *string | |
| size_t | n_base64_decode_len (N_STR *string) |
| get the length of 'input' if it was base64 decoded | |
| N_STR * | n_base64_encode (N_STR *input) |
| encode a N_STR *string | |
| size_t | n_base64_encode_len (N_STR *string) |
| get the length of string if it was base64 encoded | |
| bool | n_isalpha (char c) |
| is_alpha | |
| bool | n_islower (char c) |
| test if char c is lowercase | |
| bool | n_isupper (char c) |
| test if char c is uppercase | |
| char | n_tolower (char c) |
| is_alpha | |
| char | n_toupper (char c) |
| is_alpha | |
Variables | |
| static const bool | ascii_lower_case_lookup_table [256] |
| static lower case lookup ascii table | |
| static const bool | ascii_upper_case_lookup_table [256] |
| static upper case lookup ascii table | |
| static const char | basis_64 [] |
| static lookup base64 alphabet | |
| static const unsigned char | pr2six [256] |
| static lookup ascii table | |
Base64 encode decode function, adapted from https://opensource.apple.com/source/QuickTimeStreamingServer/QuickTimeStreamingServer-452/CommonUtilitiesLib/base64.c.
Definition in file n_base64.c.
| size_t n_base64_decode_len | ( | N_STR * | string | ) |
get the length of 'input' if it was base64 decoded
| input | the N_STR *string for which we need the decoded size |
Definition at line 135 of file n_base64.c.
References __n_assert, N_STR::data, LOG_ERR, n_log, and pr2six.
| size_t n_base64_encode_len | ( | N_STR * | string | ) |
get the length of string if it was base64 encoded
| string | the N_STR *string for which we need the encoded size |
Definition at line 240 of file n_base64.c.
References __n_assert, and N_STR::written.
Referenced by n_base64_encode().
Here is the caller graph for this function:
|
static |
static lower case lookup ascii table
Definition at line 56 of file n_base64.c.
Referenced by n_isalpha(), n_islower(), and n_toupper().
|
static |
static upper case lookup ascii table
Definition at line 34 of file n_base64.c.
Referenced by n_isalpha(), n_isupper(), and n_tolower().
|
static |
static lookup base64 alphabet
Definition at line 78 of file n_base64.c.
Referenced by n_base64_encode().
|
static |
static lookup ascii table
Definition at line 13 of file n_base64.c.
Referenced by n_base64_decode(), and n_base64_decode_len().