Lines Matching full:read
26 /* Read the data from whatever input you are using. The default routine
30 * to read more then 64K on a 16 bit machine.
40 png_error(png_ptr, "Call to NULL read function");
84 png_error(png_ptr, "Read Error");
120 png_size_t read, remaining, err;
125 read = MIN(NEAR_BUF_SIZE, remaining);
127 if ( !ReadFile((HANDLE)(io_ptr), buf, read, &err, NULL) )
130 err = fread(buf, (png_size_t)1, read, io_ptr);
132 png_memcpy(data, buf, read); /* copy far buffer to near buffer */
133 if (err != read)
137 data += read;
138 remaining -= read;
143 png_error(png_ptr, "read Error");
158 * unsigned int that is the number of bytes to be read.
181 /* It is an error to write to a read device */