Home | History | Annotate | Download | only in libpng

Lines Matching defs: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");
69 png_error(png_ptr, "Read Error");
105 png_size_t read, remaining, err;
110 read = MIN(NEAR_BUF_SIZE, remaining);
112 if ( !ReadFile((HANDLE)(io_ptr), buf, read, &err, NULL) )
115 err = fread(buf, (png_size_t)1, read, io_ptr);
117 png_memcpy(data, buf, read); /* copy far buffer to near buffer */
118 if (err != read)
122 data += read;
123 remaining -= read;
128 png_error(png_ptr, "read Error");
143 * unsigned int that is the number of bytes to be read.
166 /* It is an error to write to a read device */