src/mongoose/mongoose.cpp
static unsigned char from_b64(unsigned char ch) {
    /* Inverse lookup map */
    static const unsigned char tab[128] = {
        255, 255, 255, 255,
        255, 255, 255, 255, /*  0 */
        255, 255, 255, 255,
        255, 255, 255, 255, /*  8 */
        255, 255, 255, 255,
        255, 255, 255, 255, /*  16 */
        255, 255, 255, 255,
        255, 255, 255, 255, /*  24 */
        255, 255, 255, 255,
        255, 255, 255, 255, /*  32 */
        255, 255, 255, 62,
        255, 255, 255, 63, /*  40 */
        52,  53,  54,  55,
        56,  57,  58,  59, /*  48 */
        60,  61,  255, 255,
        255, 200, 255, 255, /*  56   '=' is 200, on index 61 */
        255, 0,   1,   2,
        3,   4,   5,   6, /*  64 */
        7,   8,   9,   10,
        11,  12,  13,  14, /*  72 */
        15,  16,  17,  18,
        19,  20,  21,  22, /*  80 */
        23,  24,  25,  255,
        255, 255, 255, 255, /*  88 */
        255, 26,  27,  28,
        29,  30,  31,  32, /*  96 */
        33,  34,  35,  36,
        37,  38,  39,  40, /*  104 */
        41,  42,  43,  44,
        45,  46,  47,  48, /*  112 */
        49,  50,  51,  255,
        255, 255, 255, 255, /*  120 */
    };
    return tab[ch & 127];
}
/* Convert one byte of encoded base64 input stream to 6-bit chunk */
Convert one byte of encoded base64 input stream to 6-bit chunk
Convert one byte of encoded base64 input stream to 6 - bit chunk
static unsigned char from_b64(unsigned char ch) {
    static const unsigned char tab[128] = {
        255, 255, 255, 255,
        255, 255, 255, 255, 
        255, 255, 255, 255,
        255, 255, 255, 255, 
        255, 255, 255, 255,
        255, 255, 255, 255, 
        255, 255, 255, 255,
        255, 255, 255, 255, 
        255, 255, 255, 255,
        255, 255, 255, 255, 
        255, 255, 255, 62,
        255, 255, 255, 63, 
        52,  53,  54,  55,
        56,  57,  58,  59, 
        60,  61,  255, 255,
        255, 200, 255, 255, 
        255, 0,   1,   2,
        3,   4,   5,   6, 
        7,   8,   9,   10,
        11,  12,  13,  14, 
        15,  16,  17,  18,
        19,  20,  21,  22, 
        23,  24,  25,  255,
        255, 255, 255, 255, 
        255, 26,  27,  28,
        29,  30,  31,  32, 
        33,  34,  35,  36,
        37,  38,  39,  40, 
        41,  42,  43,  44,
        45,  46,  47,  48, 
        49,  50,  51,  255,
        255, 255, 255, 255, 
    };
    return tab[ch & 127];
}
static unsigned char from_b64 ( unsigned char ch ) { static const unsigned char tab [ 128 ] = { 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 62 , 255 , 255 , 255 , 63 , 52 , 53 , 54 , 55 , 56 , 57 , 58 , 59 , 60 , 61 , 255 , 255 , 255 , 200 , 255 , 255 , 255 , 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 25 , 255 , 255 , 255 , 255 , 255 , 255 , 26 , 27 , 28 , 29 , 30 , 31 , 32 , 33 , 34 , 35 , 36 , 37 , 38 , 39 , 40 , 41 , 42 , 43 , 44 , 45 , 46 , 47 , 48 , 49 , 50 , 51 , 255 , 255 , 255 , 255 , 255 , } ; return tab [ ch & 127 ] ; }
Convert one byte of encoded base64 input stream to 6-bit chunk
Convert one byte of encoded base64 input stream to 6 - bit chunk
/* Inverse lookup map */ /*  0 */ /*  8 */ /*  16 */ /*  24 */ /*  32 */ /*  40 */ /*  48 */ /*  56   '=' is 200, on index 61 */ /*  64 */ /*  72 */ /*  80 */ /*  88 */ /*  96 */ /*  104 */ /*  112 */ /*  120 */