Lines Matching refs:buf
47 char buf[5];
53 memset(buf, 0, sizeof(buf));
55 buf[0] = base64[(source->base[0]>>2)&0x3f];
56 buf[1] = base64[((source->base[0]<<4)&0x30)|
58 buf[2] = base64[((source->base[1]<<2)&0x3c)|
60 buf[3] = base64[source->base[2]&0x3f];
61 RETERR(str_totext(buf, target));
73 buf[0] = base64[(source->base[0]>>2)&0x3f];
74 buf[1] = base64[((source->base[0]<<4)&0x30)|
76 buf[2] = base64[((source->base[1]<<2)&0x3c)];
77 buf[3] = '=';
78 RETERR(str_totext(buf, target));
81 buf[0] = base64[(source->base[0]>>2)&0x3f];
82 buf[1] = base64[((source->base[0]<<4)&0x30)];
83 buf[2] = buf[3] = '=';
84 RETERR(str_totext(buf, target));
121 unsigned char buf[3];
146 buf[0] = (ctx->val[0]<<2)|(ctx->val[1]>>4);
147 buf[1] = (ctx->val[1]<<4)|(ctx->val[2]>>2);
148 buf[2] = (ctx->val[2]<<6)|(ctx->val[3]);
149 RETERR(mem_tobuffer(ctx->target, buf, n));