Lines Matching refs:source

43 str_totext(const char *source, isc_buffer_t *target);
56 base32_totext(isc_region_t *source, int wordlength, const char *wordbreak,
66 while (source->length > 0) {
67 buf[0] = base[((source->base[0]>>3)&0x1f)]; /* 5 + */
68 if (source->length == 1) {
69 buf[1] = base[(source->base[0]<<2)&0x1c];
75 buf[1] = base[((source->base[0]<<2)&0x1c)| /* 3 = 8 */
76 ((source->base[1]>>6)&0x03)]; /* 2 + */
77 buf[2] = base[((source->base[1]>>1)&0x1f)]; /* 5 + */
78 if (source->length == 2) {
79 buf[3] = base[(source->base[1]<<4)&0x10];
84 buf[3] = base[((source->base[1]<<4)&0x10)| /* 1 = 8 */
85 ((source->base[2]>>4)&0x0f)]; /* 4 + */
86 if (source->length == 3) {
87 buf[4] = base[(source->base[2]<<1)&0x1e];
92 buf[4] = base[((source->base[2]<<1)&0x1e)| /* 4 = 8 */
93 ((source->base[3]>>7)&0x01)]; /* 1 + */
94 buf[5] = base[((source->base[3]>>2)&0x1f)]; /* 5 + */
95 if (source->length == 4) {
96 buf[6] = base[(source->base[3]<<3)&0x18];
101 buf[6] = base[((source->base[3]<<3)&0x18)| /* 2 = 8 */
102 ((source->base[4]>>5)&0x07)]; /* 3 + */
103 buf[7] = base[source->base[4]&0x1f]; /* 5 = 8 */
105 isc_region_consume(source, 5);
108 if (source->length != 0 && wordlength >= 0 &&
115 if (source->length > 0)
116 isc_region_consume(source, source->length);
121 isc_base32_totext(isc_region_t *source, int wordlength,
124 return (base32_totext(source, wordlength, wordbreak, target, base32));
128 isc_base32hex_totext(isc_region_t *source, int wordlength,
131 return (base32_totext(source, wordlength, wordbreak, target,
324 base32_decoderegion(isc_region_t *source, const char base[], isc_buffer_t *target) {
328 while (source->length != 0) {
329 int c = *source->base;
331 isc_region_consume(source, 1);
338 isc_base32_decoderegion(isc_region_t *source, isc_buffer_t *target) {
339 return (base32_decoderegion(source, base32, target));
343 isc_base32hex_decoderegion(isc_region_t *source, isc_buffer_t *target) {
344 return (base32_decoderegion(source, base32hex, target));
348 str_totext(const char *source, isc_buffer_t *target) {
353 l = strlen(source);
358 memmove(region.base, source, l);