Lines Matching refs:numbytes
561 int numbytes, datasize, level = 0, line = 0, pixel = 0;
610 numbytes = read_bulk_size (s->fd, datasize, 0, ptr, BUFSIZE - level);
611 if (numbytes < 0)
622 line += (numbytes + level) / (s->width * 3);
624 level = (numbytes + level) % (s->width * 3);
627 numbytes -= (line - s->height) * s->width * 3 + level;
629 fwrite (buf, 1, numbytes, fp);
632 memcpy (s->ptr, buf, numbytes);
633 s->ptr += numbytes;
641 ptr += numbytes; /* point to the end of data */