Lines Matching refs:bufbeg
343 p->bufbeg = 0; in cleanup_encoder_state()
353 size_t insize = st->bufend - st->bufbeg; in encoder_nop_read()
361 st->bufbeg += size; in encoder_nop_read()
376 size_t cursize = st->bufend - st->bufbeg; in encoder_7bit_read()
384 *buffer = st->buf[st->bufbeg]; in encoder_7bit_read()
387 st->bufbeg++; in encoder_7bit_read()
403 while(st->bufbeg < st->bufend) { in encoder_base64_read()
417 if(size < 4 || st->bufend - st->bufbeg < 3) in encoder_base64_read()
421 i = st->buf[st->bufbeg++] & 0xFF; in encoder_base64_read()
422 i = (i << 8) | (st->buf[st->bufbeg++] & 0xFF); in encoder_base64_read()
423 i = (i << 8) | (st->buf[st->bufbeg++] & 0xFF); in encoder_base64_read()
438 switch(st->bufend - st->bufbeg) { in encoder_base64_read()
440 i = (st->buf[st->bufbeg + 1] & 0xFF) << 8; in encoder_base64_read()
443 i |= (st->buf[st->bufbeg] & 0xFF) << 16; in encoder_base64_read()
446 if(++st->bufbeg != st->bufend) { in encoder_base64_read()
448 st->bufbeg++; in encoder_base64_read()
490 n += st->bufbeg; in qp_lookahead_eol()
515 while(st->bufbeg < st->bufend) { in encoder_qp_read()
518 int i = st->buf[st->bufbeg]; in encoder_qp_read()
523 switch(qp_class[st->buf[st->bufbeg] & 0xFF]) { in encoder_qp_read()
595 st->bufbeg += consumed; in encoder_qp_read()
758 if(st->bufbeg < st->bufend || ateof) { in read_encoded_part_content()
779 if(st->bufbeg) { in read_encoded_part_content()
780 size_t len = st->bufend - st->bufbeg; in read_encoded_part_content()
783 memmove(st->buf, st->buf + st->bufbeg, len); in read_encoded_part_content()
784 st->bufbeg = 0; in read_encoded_part_content()