Home | History | Annotate | Download | only in net

Lines Matching refs:target

137 b64_ntop(src, srclength, target, targsize)
140 char *target;
149 assert(target != NULL);
170 target[datalength++] = Base64[output[0]];
171 target[datalength++] = Base64[output[1]];
172 target[datalength++] = Base64[output[2]];
173 target[datalength++] = Base64[output[3]];
194 target[datalength++] = Base64[output[0]];
195 target[datalength++] = Base64[output[1]];
197 target[datalength++] = Pad64;
199 target[datalength++] = Base64[output[2]];
200 target[datalength++] = Pad64;
204 target[datalength] = '\0'; /* Returned value doesn't count \0. */
210 src from base - 64 numbers into three 8 bit bytes in the target area.
211 it returns the number of data bytes stored at the target, or -1 on error.
215 b64_pton(src, target, targsize)
217 u_char *target;
225 assert(target != NULL);
243 if (target) {
246 target[tarindex] = (pos - Base64) << 2;
251 if (target) {
254 target[tarindex] |=
256 target[tarindex+1] = ((pos - Base64) & 0x0f)
263 if (target) {
266 target[tarindex] |=
268 target[tarindex+1] = ((pos - Base64) & 0x03)
275 if (target) {
278 target[tarindex] |= (pos - Base64);
327 if (target && target[tarindex] != 0)