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...
Go to the source code of this file.
Functions | |
N_STR * | n_base64_decode (N_STR *bufcoded) |
decode a N_STR *string More... | |
size_t | n_base64_decode_len (N_STR *string) |
get the length of 'input' if it was base64 decoded More... | |
N_STR * | n_base64_encode (N_STR *input) |
encode a N_STR *string More... | |
size_t | n_base64_encode_len (N_STR *string) |
get the length of string if it was base64 encoded More... | |
FORCE_INLINE bool | n_isalpha (char c) |
is_alpha More... | |
FORCE_INLINE bool | n_islower (char c) |
test if char c is lowercase More... | |
FORCE_INLINE bool | n_isupper (char c) |
test if char c is uppercase More... | |
FORCE_INLINE char | n_tolower (char c) |
is_alpha More... | |
FORCE_INLINE char | n_toupper (char c) |
is_alpha More... | |
Variables | |
static const bool | ascii_lower_case_lookup_table [256] |
static lower case lookup ascii table More... | |
static const bool | ascii_upper_case_lookup_table [256] |
static upper case lookup ascii table More... | |
static const char | basis_64 [] |
static lookup base64 alphabet More... | |
static const unsigned char | pr2six [256] |
static lookup ascii table More... | |
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 * | input | ) |
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 152 of file n_base64.c.
References __n_assert, and pr2six.
int 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 235 of file n_base64.c.
References __n_assert.
Referenced by n_base64_encode().
|
static |
static lower case lookup ascii table
Definition at line 61 of file n_base64.c.
Referenced by n_isalpha(), n_islower(), and n_toupper().
|
static |
static upper case lookup ascii table
Definition at line 37 of file n_base64.c.
Referenced by n_isalpha(), n_isupper(), and n_tolower().
|
static |
static lookup base64 alphabet
Definition at line 225 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().