Lines Matching defs:value
82 * Convert a 6-bit value to a Base64 character.
87 jerryx_to_base64_character (uint8_t value) /**< 6-bit value */
89 if (value < 26)
91 return (uint8_t) (value + 'A');
94 if (value < 52)
96 return (uint8_t) (value - 26 + 'a');
99 if (value < 62)
101 return (uint8_t) (value - 52 + '0');
104 if (value == 62)
122 uint8_t value = (source_p[0] >> 2);
123 destination_p[0] = jerryx_to_base64_character (value);
125 value = (uint8_t) (((source_p[0] << 4) | (source_p[1] >> 4)) & 0x3f);
126 destination_p[1] = jerryx_to_base64_character (value);
128 value = (uint8_t) (((source_p[1] << 2) | (source_p[2] >> 6)) & 0x3f);
129 destination_p[2] = jerryx_to_base64_character (value);
131 value = (uint8_t) (source_p[2] & 0x3f);
132 destination_p[3] = jerryx_to_base64_character (value);
258 /* Last value must be replaced by equal sign. */