Lines Matching refs:buf
51 char buf[9];
57 memset(buf, 0, sizeof(buf));
59 buf[0] = base[((source->base[0]>>3)&0x1f)]; /* 5 + */
61 buf[1] = base[(source->base[0]<<2)&0x1c];
62 buf[2] = buf[3] = buf[4] = pad;
63 buf[5] = buf[6] = buf[7] = pad;
64 RETERR(str_totext(buf, target));
67 buf[1] = base[((source->base[0]<<2)&0x1c)| /* 3 = 8 */
69 buf[2] = base[((source->base[1]>>1)&0x1f)]; /* 5 + */
71 buf[3] = base[(source->base[1]<<4)&0x10];
72 buf[4] = buf[5] = buf[6] = buf[7] = pad;
73 RETERR(str_totext(buf, target));
76 buf[3] = base[((source->base[1]<<4)&0x10)| /* 1 = 8 */
79 buf[4] = base[(source->base[2]<<1)&0x1e];
80 buf[5] = buf[6] = buf[7] = pad;
81 RETERR(str_totext(buf, target));
84 buf[4] = base[((source->base[2]<<1)&0x1e)| /* 4 = 8 */
86 buf[5] = base[((source->base[3]>>2)&0x1f)]; /* 5 + */
88 buf[6] = base[(source->base[3]<<3)&0x18];
89 buf[7] = pad;
90 RETERR(str_totext(buf, target));
93 buf[6] = base[((source->base[3]<<3)&0x18)| /* 2 = 8 */
95 buf[7] = base[source->base[4]&0x1f]; /* 5 = 8 */
96 RETERR(str_totext(buf, target));
235 unsigned char buf[5];
241 buf[0] = (ctx->val[0]<<3)|(ctx->val[1]>>2);
242 buf[1] = (ctx->val[1]<<6)|(ctx->val[2]<<1)|(ctx->val[3]>>4);
243 buf[2] = (ctx->val[3]<<4)|(ctx->val[4]>>1);
244 buf[3] = (ctx->val[4]<<7)|(ctx->val[5]<<2)|(ctx->val[6]>>3);
245 buf[4] = (ctx->val[6]<<5)|(ctx->val[7]);
246 RETERR(mem_tobuffer(ctx->target, buf, n));