| 312 | |
| 313 | |
| 314 | ILboolean channelReadRaw(ILubyte *scan, ILint width, ILint noCol, ILint *off, ILint bytes) |
| 315 | { |
| 316 | ILint i, j; |
| 317 | |
| 318 | for (i = 0; i < width; i++) { |
| 319 | if (ieof()) |
| 320 | return IL_FALSE; |
| 321 | for (j = 0; j < noCol; j++) |
| 322 | if (iread(&scan[off[j]], 1, 1) != 1) |
| 323 | return IL_FALSE; |
| 324 | scan += bytes; |
| 325 | } |
| 326 | return IL_TRUE; |
| 327 | } |
| 328 | |
| 329 | |
| 330 | ILboolean channelReadPure(ILubyte *scan, ILint width, ILint noCol, ILint *off, ILint bytes) |