Lines Matching refs:bufbeg

378   p->bufbeg = 0;  in cleanup_encoder_state()
388 size_t insize = st->bufend - st->bufbeg; in encoder_nop_read()
399 memcpy(buffer, st->buf + st->bufbeg, size); in encoder_nop_read()
401 st->bufbeg += size; in encoder_nop_read()
416 size_t cursize = st->bufend - st->bufbeg; in encoder_7bit_read()
427 *buffer = st->buf[st->bufbeg]; in encoder_7bit_read()
430 st->bufbeg++; in encoder_7bit_read()
446 while(st->bufbeg < st->bufend) { in encoder_base64_read()
468 if(st->bufend - st->bufbeg < 3) in encoder_base64_read()
472 i = st->buf[st->bufbeg++] & 0xFF; in encoder_base64_read()
473 i = (i << 8) | (st->buf[st->bufbeg++] & 0xFF); in encoder_base64_read()
474 i = (i << 8) | (st->buf[st->bufbeg++] & 0xFF); in encoder_base64_read()
496 if(st->bufend != st->bufbeg) { in encoder_base64_read()
498 if(st->bufend - st->bufbeg == 2) in encoder_base64_read()
499 i = (st->buf[st->bufbeg + 1] & 0xFF) << 8; in encoder_base64_read()
501 i |= (st->buf[st->bufbeg] & 0xFF) << 16; in encoder_base64_read()
504 if(++st->bufbeg != st->bufend) { in encoder_base64_read()
506 st->bufbeg++; in encoder_base64_read()
539 n += st->bufbeg; in qp_lookahead_eol()
564 while(st->bufbeg < st->bufend) { in encoder_qp_read()
567 int i = st->buf[st->bufbeg]; in encoder_qp_read()
572 switch(qp_class[st->buf[st->bufbeg] & 0xFF]) { in encoder_qp_read()
646 st->bufbeg += consumed; in encoder_qp_read()
866 if(st->bufbeg < st->bufend || ateof) { in read_encoded_part_content()
886 if(st->bufbeg) { in read_encoded_part_content()
887 size_t len = st->bufend - st->bufbeg; in read_encoded_part_content()
890 memmove(st->buf, st->buf + st->bufbeg, len); in read_encoded_part_content()
891 st->bufbeg = 0; in read_encoded_part_content()