Lines Matching defs:text
34 static uint32_t Encode(const char *text, uint32_t text_len, uint8_t *encode)
39 encode[j++] = alphabetMap[text[i] >> 2]; // 2: map to alphabetMap
40 encode[j++] = alphabetMap[((text[i] << 4) & 0x30) | (text[i + 1] >> 4)]; // 4: map to alphabetMap
41 encode[j++] = alphabetMap[((text[i + 1] << 2) & 0x3c) | (text[i + 2] >> 6)]; // 2: alphabetMap, 6: offset
42 encode[j++] = alphabetMap[text[i + 2] & 0x3f]; // 2: map to alphabetMap
48 encode[j++] = alphabetMap[text[i] >> 2]; // 2: map to alphabetMap
49 encode[j++] = alphabetMap[(text[i] << 4) & 0x30]; // 4: map to alphabetMap
53 encode[j++] = alphabetMap[text[i] >> 2]; // 2: map to alphabetMap
54 encode[j++] = alphabetMap[((text[i] << 4) & 0x30) | (text[i + 1] >> 4)]; // 4: map to alphabetMap
55 encode[j++] = alphabetMap[(text[i + 1] << 2) & 0x3c]; // 2: map to alphabetMap