Lines Matching full:read
23 /* Read the data from whatever input you are using. The default routine
27 to read more then 64K on a 16 bit machine. */
35 png_error(png_ptr, "Call to NULL read function");
62 png_error(png_ptr, "Read Error");
96 png_size_t read, remaining, err;
101 read = MIN(NEAR_BUF_SIZE, remaining);
103 if ( !ReadFile((HANDLE)(io_ptr), buf, read, &err, NULL) )
106 err = fread(buf, (png_size_t)1, read, io_ptr);
108 png_memcpy(data, buf, read); /* copy far buffer to near buffer */
109 if(err != read)
113 data += read;
114 remaining -= read;
119 png_error(png_ptr, "read Error");
134 unsigned int that is the number of bytes to be read.
153 /* It is an error to write to a read device */