src/mongoose/mongoose.cpp
static void cs_base64_emit_code(struct cs_base64_ctx *ctx, int v) {
    if (v < NUM_UPPERCASES) {
        ctx->b64_putc(v + 'A', ctx->user_data);
    } else if (v < (NUM_LETTERS)) {
        ctx->b64_putc(v - NUM_UPPERCASES + 'a', ctx->user_data);
    } else if (v < (NUM_LETTERS + NUM_DIGITS)) {
        ctx->b64_putc(v - NUM_LETTERS + '0', ctx->user_data);
    } else {
        ctx->b64_putc(v - NUM_LETTERS - NUM_DIGITS == 0 ? '+' : '/',
                      ctx->user_data);
    }
}
/*
 * Emit a base64 code char.
 *
 * Doesn't use memory, thus it's safe to use to safely dump memory in crashdumps
 */
Emit a base64 code char.
Doesn't use memory, thus it's safe to use to safely dump memory in crashdumps
Emit a base64 code char . Doesn ' t use memory thus it ' s safe to use to safely dump memory in crashdumps
static void cs_base64_emit_code(struct cs_base64_ctx *ctx, int v) {
    if (v < NUM_UPPERCASES) {
        ctx->b64_putc(v + 'A', ctx->user_data);
    } else if (v < (NUM_LETTERS)) {
        ctx->b64_putc(v - NUM_UPPERCASES + 'a', ctx->user_data);
    } else if (v < (NUM_LETTERS + NUM_DIGITS)) {
        ctx->b64_putc(v - NUM_LETTERS + '0', ctx->user_data);
    } else {
        ctx->b64_putc(v - NUM_LETTERS - NUM_DIGITS == 0 ? '+' : '/',
                      ctx->user_data);
    }
}
static void cs_base64_emit_code ( struct cs_base64_ctx * ctx , int v ) { if ( v < NUM_UPPERCASES ) { ctx -> b64_putc ( v + ' ' , ctx -> user_data ) ; } else if ( v < ( NUM_LETTERS ) ) { ctx -> b64_putc ( v - NUM_UPPERCASES + ' ' , ctx -> user_data ) ; } else if ( v < ( NUM_LETTERS + NUM_DIGITS ) ) { ctx -> b64_putc ( v - NUM_LETTERS + ' ' , ctx -> user_data ) ; } else { ctx -> b64_putc ( v - NUM_LETTERS - NUM_DIGITS == 0 ? ' ' : ' ' , ctx -> user_data ) ; } }
Emit a base64 code char.
Emit a base64 code char .