Lines Matching defs:read
25 to read more then 64K on a 16 bit machine. */
33 png_error(png_ptr, "Call to NULL read function");
92 png_size_t read, remaining, err;
97 read = MIN(NEAR_BUF_SIZE, remaining);
99 if ( !ReadFile((HANDLE)(io_ptr), buf, read, &err, NULL) )
102 err = fread(buf, (png_size_t)1, read, io_ptr);
104 png_memcpy(data, buf, read); /* copy far buffer to near buffer */
105 if(err != read)
109 data += read;
110 remaining -= read;
115 png_error(png_ptr, "read Error");
130 unsigned int that is the number of bytes to be read.
148 /* It is an error to write to a read device */