Lines Matching refs:a_end
810 * region A which is (a_start,a_end)
813 * an empty buffer has: a_start = a_end = b_end = 0
816 * a_end is the pointer where we start writing data, unless it is BUFFER_SIZE,
819 * the buffer is full when b_end == a_start && a_end == BUFFER_SIZE
821 * there is room when b_end < a_start || a_end < BUFER_SIZE
823 * when reading, a_start is incremented, it a_start meets a_end, then
824 * we do: a_start = 0, a_end = b_end, b_end = 0, and keep going on..
862 int a_end;
881 buffer->a_end = 0;
951 avail = BIP_BUFFER_SIZE - bip->a_end;
958 memcpy( bip->buff + bip->a_end, src, avail );
963 bip->a_end += avail;
964 if (bip->a_end == BIP_BUFFER_SIZE && bip->a_start == 0) {
998 bip->fdin, bip->fdout, count, bip->a_start, bip->a_end, bip->b_end, bip->can_write, bip->can_read ));
1045 avail = bip->a_end - bip->a_start;
1057 if (bip->a_start < bip->a_end)
1061 bip->a_end = bip->b_end;
1064 avail = bip->a_end;
1072 if ( bip->a_start < bip->a_end )
1075 bip->a_start = bip->a_end = 0;
1091 bip->fdin, bip->fdout, count, bip->a_start, bip->a_end, bip->b_end, bip->can_write, bip->can_read ));